fix(AppsPage): Improve empty state rendering for apps list

This commit is contained in:
kangfenmao 2025-03-10 22:52:19 +08:00
parent c0e85b6caf
commit 3947cf07ec

View File

@ -51,16 +51,17 @@ const AppsPage: FC = () => {
</NavbarCenter> </NavbarCenter>
</Navbar> </Navbar>
<ContentContainer id="content-container"> <ContentContainer id="content-container">
<AppsContainer style={{ height: containerHeight }}> {isEmpty(filteredApps) ? (
{filteredApps.map((app) => ( <Center>
<App key={app.id} app={app} /> <Empty />
))} </Center>
{isEmpty(filteredApps) && ( ) : (
<Center style={{ flex: 1 }}> <AppsContainer style={{ height: containerHeight }}>
<Empty /> {filteredApps.map((app) => (
</Center> <App key={app.id} app={app} />
)} ))}
</AppsContainer> </AppsContainer>
)}
</ContentContainer> </ContentContainer>
</Container> </Container>
) )