File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
apps/web/src/features/datahub/pages Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { useNavigate } from 'react-router-dom';
1212import { IdentificationForm } from '@/components/IdentificationForm' ;
1313import { LoadingFallback } from '@/components/LoadingFallback' ;
1414import { PageHeader } from '@/components/PageHeader' ;
15+ import { WithFallback } from '@/components/WithFallback' ;
1516import { useAppStore } from '@/store' ;
1617import { 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 >
You can’t perform that action at this time.
0 commit comments