From e06e382daf914b5f27b11905a06cebbaf3da647a Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Mon, 16 Oct 2023 15:44:46 +0100 Subject: [PATCH 1/3] Move use localize --- src/pages/iou/SplitBillDetailsPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/SplitBillDetailsPage.js b/src/pages/iou/SplitBillDetailsPage.js index 86844ce8c66e..79a800fb4d1f 100644 --- a/src/pages/iou/SplitBillDetailsPage.js +++ b/src/pages/iou/SplitBillDetailsPage.js @@ -70,8 +70,8 @@ const defaultProps = { }; function SplitBillDetailsPage(props) { - const {translate} = useLocalize(); const {reportID} = props.report; + const {translate} = useLocalize(); const reportAction = props.reportActions[`${props.route.params.reportActionID.toString()}`]; const participantAccountIDs = reportAction.originalMessage.participantAccountIDs; From cecd8a615ee427a06d9026eb03620accb4061cba Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Mon, 16 Oct 2023 15:53:15 +0100 Subject: [PATCH 2/3] Move the useLocalize import --- src/pages/iou/SplitBillDetailsPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/SplitBillDetailsPage.js b/src/pages/iou/SplitBillDetailsPage.js index 79a800fb4d1f..3a5c864edeae 100644 --- a/src/pages/iou/SplitBillDetailsPage.js +++ b/src/pages/iou/SplitBillDetailsPage.js @@ -13,8 +13,8 @@ import compose from '../../libs/compose'; import reportActionPropTypes from '../home/report/reportActionPropTypes'; import reportPropTypes from '../reportPropTypes'; import transactionPropTypes from '../../components/transactionPropTypes'; -import withReportAndReportActionOrNotFound from '../home/report/withReportAndReportActionOrNotFound'; import useLocalize from '../../hooks/useLocalize'; +import withReportAndReportActionOrNotFound from '../home/report/withReportAndReportActionOrNotFound'; import * as TransactionUtils from '../../libs/TransactionUtils'; import * as ReportUtils from '../../libs/ReportUtils'; import * as IOU from '../../libs/actions/IOU'; From 3bbc45e755fdc2533c1bfcccba4c77fc2a6c7891 Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Mon, 16 Oct 2023 15:59:44 +0100 Subject: [PATCH 3/3] Move the useLocalize import --- src/pages/iou/SplitBillDetailsPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/SplitBillDetailsPage.js b/src/pages/iou/SplitBillDetailsPage.js index 3a5c864edeae..e29fc8ce017e 100644 --- a/src/pages/iou/SplitBillDetailsPage.js +++ b/src/pages/iou/SplitBillDetailsPage.js @@ -13,7 +13,6 @@ import compose from '../../libs/compose'; import reportActionPropTypes from '../home/report/reportActionPropTypes'; import reportPropTypes from '../reportPropTypes'; import transactionPropTypes from '../../components/transactionPropTypes'; -import useLocalize from '../../hooks/useLocalize'; import withReportAndReportActionOrNotFound from '../home/report/withReportAndReportActionOrNotFound'; import * as TransactionUtils from '../../libs/TransactionUtils'; import * as ReportUtils from '../../libs/ReportUtils'; @@ -23,6 +22,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 */