Skip to content

Commit

Permalink
fix: remove withOnyx
Browse files Browse the repository at this point in the history
  • Loading branch information
truph01 committed Dec 17, 2024
1 parent 2db77fb commit 9ca4f59
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/pages/signin/EmailDeliveryFailurePage.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {Str} from 'expensify-common';
import React, {useEffect, useMemo} from 'react';
import {Keyboard, View} from 'react-native';
import {withOnyx} from 'react-native-onyx';
import type {OnyxEntry} from 'react-native-onyx';
import {useOnyx} from 'react-native-onyx';
import PressableWithFeedback from '@components/Pressable/PressableWithFeedback';
import Text from '@components/Text';
import TextLink from '@components/TextLink';
Expand All @@ -12,16 +11,9 @@ import useThemeStyles from '@hooks/useThemeStyles';
import * as Session from '@userActions/Session';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Credentials} from '@src/types/onyx';

type EmailDeliveryFailurePageOnyxProps = {
/** The credentials of the logged in person */
credentials: OnyxEntry<Credentials>;
};

type EmailDeliveryFailurePageProps = EmailDeliveryFailurePageOnyxProps;

function EmailDeliveryFailurePage({credentials}: EmailDeliveryFailurePageProps) {
function EmailDeliveryFailurePage() {
const [credentials] = useOnyx(ONYXKEYS.CREDENTIALS);
const styles = useThemeStyles();
const {isKeyboardShown} = useKeyboardState();
const {translate} = useLocalize();
Expand Down Expand Up @@ -90,6 +82,4 @@ function EmailDeliveryFailurePage({credentials}: EmailDeliveryFailurePageProps)

EmailDeliveryFailurePage.displayName = 'EmailDeliveryFailurePage';

export default withOnyx<EmailDeliveryFailurePageProps, EmailDeliveryFailurePageOnyxProps>({
credentials: {key: ONYXKEYS.CREDENTIALS},
})(EmailDeliveryFailurePage);
export default EmailDeliveryFailurePage;

0 comments on commit 9ca4f59

Please sign in to comment.