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>
</Navbar>
<ContentContainer id="content-container">
<AppsContainer style={{ height: containerHeight }}>
{filteredApps.map((app) => (
<App key={app.id} app={app} />
))}
{isEmpty(filteredApps) && (
<Center style={{ flex: 1 }}>
<Empty />
</Center>
)}
</AppsContainer>
{isEmpty(filteredApps) ? (
<Center>
<Empty />
</Center>
) : (
<AppsContainer style={{ height: containerHeight }}>
{filteredApps.map((app) => (
<App key={app.id} app={app} />
))}
</AppsContainer>
)}
</ContentContainer>
</Container>
)