From 4d795d24e4e89d1e8e55c11c37de41a2a51c903a Mon Sep 17 00:00:00 2001 From: staszekscp Date: Wed, 20 Dec 2023 15:29:31 +0100 Subject: [PATCH] fix props for WorkspaceNamePage --- src/pages/workspace/WorkspaceNamePage.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/pages/workspace/WorkspaceNamePage.js b/src/pages/workspace/WorkspaceNamePage.js index be55e7ad728f..7401f0cfaaa0 100644 --- a/src/pages/workspace/WorkspaceNamePage.js +++ b/src/pages/workspace/WorkspaceNamePage.js @@ -7,8 +7,6 @@ import HeaderWithBackButton from '@components/HeaderWithBackButton'; import {withNetwork} from '@components/OnyxProvider'; import ScreenWrapper from '@components/ScreenWrapper'; import TextInput from '@components/TextInput'; -import {withCurrentUserPersonalDetailsDefaultProps, withCurrentUserPersonalDetailsPropTypes} from '@components/withCurrentUserPersonalDetails'; -import {withLocalizePropTypes} from '@components/withLocalize'; import withWindowDimensions from '@components/withWindowDimensions'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; @@ -19,16 +17,14 @@ import * as Policy from '@userActions/Policy'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; -import withPolicy from './withPolicy'; +import withPolicy, {policyDefaultProps, policyPropTypes} from './withPolicy'; const propTypes = { - ...withLocalizePropTypes, - ...withCurrentUserPersonalDetailsPropTypes, + ...policyPropTypes, }; const defaultProps = { - ...withCurrentUserPersonalDetailsDefaultProps, - isLoadingApp: true, + ...policyDefaultProps, }; function WorkspaceNamePage({policy}) {