Skip to content

Commit fdf3e04

Browse files
committed
removing withNetwork inside the initialPage
1 parent f81f094 commit fdf3e04

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

src/pages/workspace/reimburse/WorkspaceRateAndUnitPage/InitialPage.tsx

+10-13
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {withOnyx} from 'react-native-onyx';
66
import FormAlertWithSubmitButton from '@components/FormAlertWithSubmitButton';
77
import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription';
88
import OfflineWithFeedback from '@components/OfflineWithFeedback';
9-
import {withNetwork} from '@components/OnyxProvider';
109
import ScrollView from '@components/ScrollView';
1110
import useLocalize from '@hooks/useLocalize';
1211
import useThemeStyles from '@hooks/useThemeStyles';
@@ -149,16 +148,14 @@ function WorkspaceRateAndUnitPage(props: WorkspaceRateAndUnitPageProps) {
149148

150149
WorkspaceRateAndUnitPage.displayName = 'WorkspaceRateAndUnitPage';
151150

152-
export default withNetwork()(
153-
withPolicy(
154-
withOnyx<WorkspaceRateAndUnitPageProps, WorkspaceRateAndUnitOnyxProps>({
155-
// @ts-expect-error: ONYXKEYS.REIMBURSEMENT_ACCOUNT is conflicting with ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM
156-
reimbursementAccount: {
157-
key: ONYXKEYS.REIMBURSEMENT_ACCOUNT,
158-
},
159-
workspaceRateAndUnit: {
160-
key: ONYXKEYS.WORKSPACE_RATE_AND_UNIT,
161-
},
162-
})(WorkspaceRateAndUnitPage),
163-
),
151+
export default withPolicy(
152+
withOnyx<WorkspaceRateAndUnitPageProps, WorkspaceRateAndUnitOnyxProps>({
153+
// @ts-expect-error: ONYXKEYS.REIMBURSEMENT_ACCOUNT is conflicting with ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM
154+
reimbursementAccount: {
155+
key: ONYXKEYS.REIMBURSEMENT_ACCOUNT,
156+
},
157+
workspaceRateAndUnit: {
158+
key: ONYXKEYS.WORKSPACE_RATE_AND_UNIT,
159+
},
160+
})(WorkspaceRateAndUnitPage),
164161
);

0 commit comments

Comments
 (0)