Skip to content

Commit

Permalink
Merge pull request #13898 from Expensify/marco-addNewHelpLink
Browse files Browse the repository at this point in the history
Add link to NewHelp
  • Loading branch information
marcochavezf authored Jan 14, 2023
2 parents 9973de7 + 63cb818 commit f3600bf
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ const CONST = {
FEES_URL: `${USE_EXPENSIFY_URL}/fees`,
CFPB_PREPAID_URL: 'https://cfpb.gov/prepaid',
STAGING_NEW_EXPENSIFY_URL: 'https://staging.new.expensify.com',
NEWHELP_URL: 'https://help.expensify.com',

// Use Environment.getEnvironmentURL to get the complete URL with port number
DEV_NEW_EXPENSIFY_URL: 'http://localhost:',
Expand Down
2 changes: 2 additions & 0 deletions src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ export default {
phrase3: 'and',
phrase4: 'privacy policy',
},
help: 'Help',
},
closeAccountPage: {
closeAccount: 'Close account',
Expand Down Expand Up @@ -979,6 +980,7 @@ export default {
chatWithConcierge: 'Chat with Concierge',
requestSetupCall: 'Request a setup call',
questionMarkButtonTooltip: 'Get assistance from our team',
exploreHelpDocs: 'Explore help docs',
},
requestCallPage: {
title: 'Request a call',
Expand Down
2 changes: 2 additions & 0 deletions src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ export default {
phrase3: 'y',
phrase4: 'política de privacidad',
},
help: 'Ayuda',
},
closeAccountPage: {
closeAccount: 'Cerrar cuenta',
Expand Down Expand Up @@ -981,6 +982,7 @@ export default {
chatWithConcierge: 'Chatear con Concierge',
requestSetupCall: 'Llámame por teléfono',
questionMarkButtonTooltip: 'Obtén ayuda de nuestro equipo',
exploreHelpDocs: 'Explorar la documentación de ayuda',
},
requestCallPage: {
title: 'Llámame por teléfono',
Expand Down
10 changes: 10 additions & 0 deletions src/pages/GetAssistancePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import * as Expensicons from '../components/Icon/Expensicons';
import * as Illustrations from '../components/Icon/Illustrations';
import * as Report from '../libs/actions/Report';
import ROUTES from '../ROUTES';
import * as Link from '../libs/actions/Link';
import CONST from '../CONST';

const propTypes = {
/** Route object from navigation */
Expand Down Expand Up @@ -52,6 +54,14 @@ const GetAssistancePage = props => (
shouldShowRightIcon: true,
wrapperStyle: [styles.cardMenuItem],
},
{
title: props.translate('getAssistancePage.exploreHelpDocs'),
onPress: () => Link.openExternalLink(CONST.NEWHELP_URL),
icon: Expensicons.QuestionMark,
shouldShowRightIcon: true,
iconFill: themeColors.success,
wrapperStyle: [styles.cardMenuItem],
},
]}
>
<View style={styles.mv3}>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/settings/InitialSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import * as Wallet from '../../libs/actions/Wallet';
import walletTermsPropTypes from '../EnablePayments/walletTermsPropTypes';
import * as PolicyUtils from '../../libs/PolicyUtils';
import ConfirmModal from '../../components/ConfirmModal';
import * as Link from '../../libs/actions/Link';
import OfflineWithFeedback from '../../components/OfflineWithFeedback';

const propTypes = {
Expand Down Expand Up @@ -170,6 +171,11 @@ class InitialSettingsPage extends React.Component {
brickRoadIndicator: PaymentMethods.hasPaymentMethodError(this.props.bankAccountList, this.props.cardList) || !_.isEmpty(this.props.userWallet.errors)
|| !_.isEmpty(this.props.walletTerms.errors) ? 'error' : null,
},
{
translationKey: 'initialSettingsPage.help',
icon: Expensicons.QuestionMark,
action: () => { Link.openExternalLink(CONST.NEWHELP_URL); },
},
{
translationKey: 'initialSettingsPage.about',
icon: Expensicons.Info,
Expand Down

0 comments on commit f3600bf

Please sign in to comment.