Skip to content

Commit

Permalink
Merge pull request #54230 from truph01/fix/53668
Browse files Browse the repository at this point in the history
fix: update here link in suspended account message
  • Loading branch information
grgia authored Dec 18, 2024
2 parents f3df091 + 9ca4f59 commit 7bcb38c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/redirects.csv
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ https://help.expensify.com/articles/expensify-classic/copilots-and-delegates/Vac
https://community.expensify.com/discussion/5678/deep-dive-secondary-login-merge-accounts-what-does-this-mean,https://help.expensify.com/articles/expensify-classic/settings/account-settings/Merge-accounts
https://community.expensify.com/discussion/5103/how-to-create-and-use-custom-units/,https://help.expensify.com/
https://community.expensify.com/discussion/6530/how-to-set-your-time-zone-for-report-history-comments,https://help.expensify.com/articles/expensify-classic/settings/account-settings/Set-time-zone
https://community.expensify.com/discussion/5651/deep-dive--practices-when-youre-running-into-trouble-receiving-emails-from-expensify,https://help.expensify.com/articles/expensify-classic/settings/account-settings/Set-Notifications
https://community.expensify.com/discussion/5651/deep-dive-best-practices-when-youre-running-into-trouble-receiving-emails-from-expensify,https://help.expensify.com/articles/expensify-classic/settings/account-settings/Set-Notifications
https://community.expensify.com/discussion/5793/how-to-connect-your-personal-card-to-import-expenses/,https://help.expensify.com/articles/expensify-classic/connect-credit-cards/Personal-Credit-Cards
https://community.expensify.com/discussion/5677/deep-dive-security-how-expensify-protects-your-information,https://help.expensify.com/articles/new-expensify/settings/Encryption-and-Data-Security
https://community.expensify.com/discussion/4641/how-to-add-a-u-s-deposit-account,https://help.expensify.com/articles/expensify-classic/bank-accounts-and-payments/bank-accounts/Connect-Personal-US-Bank-Account
Expand Down
1 change: 1 addition & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@ const CONST = {
DEEP_DIVE_EXPENSIFY_CARD: 'https://community.expensify.com/discussion/4848/deep-dive-expensify-card-and-quickbooks-online-auto-reconciliation-how-it-works',
DEEP_DIVE_ERECEIPTS: 'https://community.expensify.com/discussion/5542/deep-dive-what-are-ereceipts/',
DEEP_DIVE_PER_DIEM: 'https://community.expensify.com/discussion/4772/how-to-add-a-single-rate-per-diem',
SET_NOTIFICATION_LINK: 'https://community.expensify.com/discussion/5651/deep-dive--practices-when-youre-running-into-trouble-receiving-emails-from-expensify',
GITHUB_URL: 'https://github.com/Expensify/App',
HELP_LINK_URL: `${USE_EXPENSIFY_URL}/usa-patriot-act`,
ELECTRONIC_DISCLOSURES_URL: `${USE_EXPENSIFY_URL}/esignagreement`,
Expand Down
20 changes: 5 additions & 15 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 @@ -53,7 +45,7 @@ function EmailDeliveryFailurePage({credentials}: EmailDeliveryFailurePageProps)
<Text style={[styles.textStrong]}>{translate('emailDeliveryFailurePage.ensureYourEmailClient')}</Text>
{translate('emailDeliveryFailurePage.youCanFindDirections')}
<TextLink
href="https://community.expensify.com/discussion/5651/deep-dive-best-practices-when-youre-running-into-trouble-receiving-emails-from-expensify/p1?new=1"
href={CONST.SET_NOTIFICATION_LINK}
style={[styles.link]}
>
{translate('common.here')}
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 7bcb38c

Please sign in to comment.