@@ -6,7 +6,6 @@ import {withOnyx} from 'react-native-onyx';
6
6
import FormAlertWithSubmitButton from '@components/FormAlertWithSubmitButton' ;
7
7
import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription' ;
8
8
import OfflineWithFeedback from '@components/OfflineWithFeedback' ;
9
- import { withNetwork } from '@components/OnyxProvider' ;
10
9
import ScrollView from '@components/ScrollView' ;
11
10
import useLocalize from '@hooks/useLocalize' ;
12
11
import useThemeStyles from '@hooks/useThemeStyles' ;
@@ -149,16 +148,14 @@ function WorkspaceRateAndUnitPage(props: WorkspaceRateAndUnitPageProps) {
149
148
150
149
WorkspaceRateAndUnitPage . displayName = 'WorkspaceRateAndUnitPage' ;
151
150
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 ) ,
164
161
) ;
0 commit comments