Skip to content

Commit

Permalink
use hook instead of HOC
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Oct 16, 2023
1 parent d7786f8 commit 9fed95f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/iou/SplitBillDetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 */
Expand Down Expand Up @@ -62,8 +62,6 @@ const propTypes = {
/** Currently logged in user email */
email: PropTypes.string,
}).isRequired,

...withLocalizePropTypes,
};

const defaultProps = {
Expand Down Expand Up @@ -113,7 +111,7 @@ function SplitBillDetailsPage(props) {
return (
<ScreenWrapper testID={SplitBillDetailsPage.displayName}>
<FullPageNotFoundView shouldShow={_.isEmpty(reportID) || _.isEmpty(reportAction) || _.isEmpty(props.transaction)}>
<HeaderWithBackButton title={props.translate('common.details')} />
<HeaderWithBackButton title={translate('common.details')} />
<View
pointerEvents="box-none"
style={[styles.containerWithSpaceBetween]}
Expand Down

0 comments on commit 9fed95f

Please sign in to comment.