diff --git a/src/pages/settings/Profile/CustomStatus/StatusPage.js b/src/pages/settings/Profile/CustomStatus/StatusPage.js index 5d7bb11f4537..78aa71db6256 100644 --- a/src/pages/settings/Profile/CustomStatus/StatusPage.js +++ b/src/pages/settings/Profile/CustomStatus/StatusPage.js @@ -10,7 +10,6 @@ import MenuItem from '@components/MenuItem'; import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription'; import Text from '@components/Text'; import withCurrentUserPersonalDetails, {withCurrentUserPersonalDetailsPropTypes} from '@components/withCurrentUserPersonalDetails'; -import withLocalize from '@components/withLocalize'; import useLocalize from '@hooks/useLocalize'; import compose from '@libs/compose'; import Navigation from '@libs/Navigation/Navigation'; @@ -26,7 +25,7 @@ const propTypes = { }; function StatusPage({draftStatus, currentUserPersonalDetails}) { - const localize = useLocalize(); + const {translate} = useLocalize(); const currentUserEmojiCode = lodashGet(currentUserPersonalDetails, 'status.emojiCode', ''); const currentUserStatusText = lodashGet(currentUserPersonalDetails, 'status.text', ''); const draftEmojiCode = lodashGet(draftStatus, 'emojiCode'); @@ -62,18 +61,18 @@ function StatusPage({draftStatus, currentUserPersonalDetails}) { hasDraftStatus ? (