About tab copy changes; Update route for Info & Help in account menu (#6356)

feature/default_network_editable
Chi Kei Chan 6 years ago committed by Whymarrh Whitby
parent 1d14646a4c
commit adcf03eacc
  1. 6
      app/_locales/en/messages.json
  2. 4
      ui/app/components/app/account-menu/account-menu.component.js
  3. 4
      ui/app/pages/settings/settings.component.js

@ -44,6 +44,12 @@
"providerRequestInfo": { "providerRequestInfo": {
"message": "This site is requesting access to view your current account address. Always make sure you trust the sites you interact with." "message": "This site is requesting access to view your current account address. Always make sure you trust the sites you interact with."
}, },
"about": {
"message": "About"
},
"aboutSettingsDescription": {
"message": "Version, support center, and contact info."
},
"aboutUs": { "aboutUs": {
"message": "About Us" "message": "About Us"
}, },

@ -10,7 +10,7 @@ import UserPreferencedCurrencyDisplay from '../user-preferenced-currency-display
import { PRIMARY } from '../../../helpers/constants/common' import { PRIMARY } from '../../../helpers/constants/common'
import { import {
SETTINGS_ROUTE, SETTINGS_ROUTE,
INFO_ROUTE, ABOUT_US_ROUTE,
NEW_ACCOUNT_ROUTE, NEW_ACCOUNT_ROUTE,
IMPORT_ACCOUNT_ROUTE, IMPORT_ACCOUNT_ROUTE,
CONNECT_HARDWARE_ROUTE, CONNECT_HARDWARE_ROUTE,
@ -307,7 +307,7 @@ export default class AccountMenu extends PureComponent {
<Item <Item
onClick={() => { onClick={() => {
toggleAccountMenu() toggleAccountMenu()
history.push(INFO_ROUTE) history.push(ABOUT_US_ROUTE)
}} }}
icon={ icon={
<img src="images/mm-info-icon.svg" /> <img src="images/mm-info-icon.svg" />

@ -22,7 +22,7 @@ const ROUTES_TO_I18N_KEYS = {
[GENERAL_ROUTE]: 'general', [GENERAL_ROUTE]: 'general',
[ADVANCED_ROUTE]: 'advanced', [ADVANCED_ROUTE]: 'advanced',
[SECURITY_ROUTE]: 'securityAndPrivacy', [SECURITY_ROUTE]: 'securityAndPrivacy',
[ABOUT_US_ROUTE]: 'aboutUs', [ABOUT_US_ROUTE]: 'about',
} }
export default class SettingsPage extends PureComponent { export default class SettingsPage extends PureComponent {
@ -92,7 +92,7 @@ export default class SettingsPage extends PureComponent {
{ content: t('general'), description: t('generalSettingsDescription'), key: GENERAL_ROUTE }, { content: t('general'), description: t('generalSettingsDescription'), key: GENERAL_ROUTE },
{ content: t('advanced'), description: t('advancedSettingsDescription'), key: ADVANCED_ROUTE }, { content: t('advanced'), description: t('advancedSettingsDescription'), key: ADVANCED_ROUTE },
{ content: t('securityAndPrivacy'), description: t('securitySettingsDescription'), key: SECURITY_ROUTE }, { content: t('securityAndPrivacy'), description: t('securitySettingsDescription'), key: SECURITY_ROUTE },
{ content: t('aboutUs'), key: ABOUT_US_ROUTE }, { content: t('about'), description: t('aboutSettingsDescription'), key: ABOUT_US_ROUTE },
]} ]}
isActive={key => { isActive={key => {
if (key === GENERAL_ROUTE && this.isCurrentPath(SETTINGS_ROUTE)) { if (key === GENERAL_ROUTE && this.isCurrentPath(SETTINGS_ROUTE)) {

Loading…
Cancel
Save