Skip to content

Commit 9de5086

Browse files
committed
fix: add WithFallback to data hub page
1 parent a0ae028 commit 9de5086

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

apps/web/src/features/datahub/pages/DataHubPage.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { useNavigate } from 'react-router-dom';
1212
import { IdentificationForm } from '@/components/IdentificationForm';
1313
import { LoadingFallback } from '@/components/LoadingFallback';
1414
import { PageHeader } from '@/components/PageHeader';
15+
import { WithFallback } from '@/components/WithFallback';
1516
import { useAppStore } from '@/store';
1617
import { downloadExcel } from '@/utils/excel';
1718

@@ -84,7 +85,7 @@ export const DataHubPage = () => {
8485
</Heading>
8586
</PageHeader>
8687
<React.Suspense fallback={<LoadingFallback />}>
87-
<div>
88+
<div className="flex flex-grow flex-col">
8889
<div className="mb-3 flex flex-col justify-between gap-3 lg:flex-row">
8990
<Dialog open={isLookupOpen} onOpenChange={setIsLookupOpen}>
9091
<Dialog.Trigger className="flex-grow">
@@ -115,10 +116,13 @@ export const DataHubPage = () => {
115116
/>
116117
</div>
117118
</div>
118-
<MasterDataTable
119-
data={data ?? []}
120-
onSelect={(subject) => {
121-
navigate(`${subject.id}/assignments`);
119+
<WithFallback
120+
Component={MasterDataTable}
121+
props={{
122+
data,
123+
onSelect: (subject) => {
124+
navigate(`${subject.id}/assignments`);
125+
}
122126
}}
123127
/>
124128
</div>

0 commit comments

Comments
 (0)