@@ -40,8 +40,6 @@ import ROUTES from '@src/ROUTES';
40
40
import type { Policy as PolicyType , ReimbursementAccount , Report , Session as SessionType } from '@src/types/onyx' ;
41
41
import type * as OnyxCommon from '@src/types/onyx/OnyxCommon' ;
42
42
import { isEmptyObject } from '@src/types/utils/EmptyObject' ;
43
- import withPolicyAndFullscreenLoading from './withPolicyAndFullscreenLoading' ;
44
- import type { WithPolicyAndFullscreenLoadingProps } from './withPolicyAndFullscreenLoading' ;
45
43
import WorkspacesListRow from './WorkspacesListRow' ;
46
44
47
45
type WorkspaceItem = Required < Pick < MenuItemProps , 'title' | 'disabled' > > &
@@ -82,7 +80,7 @@ type WorkspaceListPageOnyxProps = {
82
80
session : OnyxEntry < SessionType > ;
83
81
} ;
84
82
85
- type WorkspaceListPageProps = WithPolicyAndFullscreenLoadingProps & WorkspaceListPageOnyxProps ;
83
+ type WorkspaceListPageProps = WorkspaceListPageOnyxProps ;
86
84
87
85
const workspaceFeatures : FeatureListItem [ ] = [
88
86
{
@@ -440,20 +438,18 @@ function WorkspacesListPage({policies, reimbursementAccount, reports, session}:
440
438
441
439
WorkspacesListPage . displayName = 'WorkspacesListPage' ;
442
440
443
- export default withPolicyAndFullscreenLoading (
444
- withOnyx < WorkspaceListPageProps , WorkspaceListPageOnyxProps > ( {
445
- policies : {
446
- key : ONYXKEYS . COLLECTION . POLICY ,
447
- } ,
448
- // @ts -expect-error: ONYXKEYS.REIMBURSEMENT_ACCOUNT is conflicting with ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM
449
- reimbursementAccount : {
450
- key : ONYXKEYS . REIMBURSEMENT_ACCOUNT ,
451
- } ,
452
- reports : {
453
- key : ONYXKEYS . COLLECTION . REPORT ,
454
- } ,
455
- session : {
456
- key : ONYXKEYS . SESSION ,
457
- } ,
458
- } ) ( WorkspacesListPage ) ,
459
- ) ;
441
+ export default withOnyx < WorkspaceListPageProps , WorkspaceListPageOnyxProps > ( {
442
+ policies : {
443
+ key : ONYXKEYS . COLLECTION . POLICY ,
444
+ } ,
445
+ // @ts -expect-error: ONYXKEYS.REIMBURSEMENT_ACCOUNT is conflicting with ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM
446
+ reimbursementAccount : {
447
+ key : ONYXKEYS . REIMBURSEMENT_ACCOUNT ,
448
+ } ,
449
+ reports : {
450
+ key : ONYXKEYS . COLLECTION . REPORT ,
451
+ } ,
452
+ session : {
453
+ key : ONYXKEYS . SESSION ,
454
+ } ,
455
+ } ) ( WorkspacesListPage ) ;
0 commit comments