From 9fed95f269ea221b711e0791135ae260132292c9 Mon Sep 17 00:00:00 2001 From: Georgia Monahan Date: Mon, 16 Oct 2023 11:04:12 +0100 Subject: [PATCH] use hook instead of HOC --- src/pages/iou/SplitBillDetailsPage.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/iou/SplitBillDetailsPage.js b/src/pages/iou/SplitBillDetailsPage.js index 640831d4b337..b6d2d8d2d1f6 100644 --- a/src/pages/iou/SplitBillDetailsPage.js +++ b/src/pages/iou/SplitBillDetailsPage.js @@ -9,7 +9,6 @@ import ONYXKEYS from '../../ONYXKEYS'; import CONST from '../../CONST'; import * as OptionsListUtils from '../../libs/OptionsListUtils'; import personalDetailsPropType from '../personalDetailsPropType'; -import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize'; import compose from '../../libs/compose'; import reportActionPropTypes from '../home/report/reportActionPropTypes'; import reportPropTypes from '../reportPropTypes'; @@ -24,6 +23,7 @@ import MoneyRequestConfirmationList from '../../components/MoneyRequestConfirmat import FullPageNotFoundView from '../../components/BlockingViews/FullPageNotFoundView'; import HeaderWithBackButton from '../../components/HeaderWithBackButton'; import MoneyRequestHeaderStatusBar from '../../components/MoneyRequestHeaderStatusBar'; +import useLocalize from '../../hooks/useLocalize'; const propTypes = { /* Onyx Props */ @@ -62,8 +62,6 @@ const propTypes = { /** Currently logged in user email */ email: PropTypes.string, }).isRequired, - - ...withLocalizePropTypes, }; const defaultProps = { @@ -113,7 +111,7 @@ function SplitBillDetailsPage(props) { return ( - +