2023-04-04 18:48:04 +02:00
|
|
|
import { ICON_NAMES } from '../../components/component-library/icon/deprecated';
|
2022-04-06 22:27:08 +02:00
|
|
|
import {
|
|
|
|
ALERTS_ROUTE,
|
|
|
|
ADVANCED_ROUTE,
|
|
|
|
SECURITY_ROUTE,
|
|
|
|
GENERAL_ROUTE,
|
|
|
|
ABOUT_US_ROUTE,
|
|
|
|
NETWORKS_ROUTE,
|
|
|
|
CONTACT_LIST_ROUTE,
|
|
|
|
EXPERIMENTAL_ROUTE,
|
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
|
|
SNAPS_LIST_ROUTE,
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
|
|
|
} from './routes';
|
|
|
|
|
|
|
|
export const SETTINGS_CONSTANTS = [
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('general'),
|
|
|
|
sectionMessage: (t) => t('currencyConversion'),
|
|
|
|
descriptionMessage: (t) => t('currencyConversion'),
|
|
|
|
route: `${GENERAL_ROUTE}#currency-conversion`,
|
2023-02-27 03:42:03 +01:00
|
|
|
iconName: ICON_NAMES.SETTING,
|
2022-04-06 22:27:08 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('general'),
|
|
|
|
sectionMessage: (t) => t('primaryCurrencySetting'),
|
|
|
|
descriptionMessage: (t) => t('primaryCurrencySettingDescription'),
|
|
|
|
route: `${GENERAL_ROUTE}#primary-currency`,
|
2023-02-27 03:42:03 +01:00
|
|
|
iconName: ICON_NAMES.SETTING,
|
2022-04-06 22:27:08 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('general'),
|
|
|
|
sectionMessage: (t) => t('currentLanguage'),
|
|
|
|
descriptionMessage: (t) => t('currentLanguage'),
|
|
|
|
route: `${GENERAL_ROUTE}#current-language`,
|
2023-02-27 03:42:03 +01:00
|
|
|
iconName: ICON_NAMES.SETTING,
|
2022-04-06 22:27:08 +02:00
|
|
|
},
|
2022-09-23 17:15:02 +02:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('general'),
|
|
|
|
sectionMessage: (t) => t('theme'),
|
|
|
|
descriptionMessage: (t) => t('themeDescription'),
|
|
|
|
route: `${GENERAL_ROUTE}#theme`,
|
|
|
|
icon: 'fa fa-flask',
|
|
|
|
},
|
2022-04-06 22:27:08 +02:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('general'),
|
|
|
|
sectionMessage: (t) => t('accountIdenticon'),
|
|
|
|
descriptionMessage: (t) => t('accountIdenticon'),
|
|
|
|
route: `${GENERAL_ROUTE}#account-identicon`,
|
2023-02-27 03:42:03 +01:00
|
|
|
iconName: ICON_NAMES.SETTING,
|
2022-04-06 22:27:08 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('general'),
|
|
|
|
sectionMessage: (t) => t('hideZeroBalanceTokens'),
|
|
|
|
descriptionMessage: (t) => t('hideZeroBalanceTokens'),
|
|
|
|
route: `${GENERAL_ROUTE}#zero-balancetokens`,
|
2023-02-27 03:42:03 +01:00
|
|
|
iconName: ICON_NAMES.SETTING,
|
2022-04-06 22:27:08 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('stateLogs'),
|
|
|
|
descriptionMessage: (t) => t('stateLogsDescription'),
|
|
|
|
route: `${ADVANCED_ROUTE}#state-logs`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('syncWithMobile'),
|
|
|
|
descriptionMessage: (t) => t('syncWithMobile'),
|
|
|
|
route: `${ADVANCED_ROUTE}#sync-withmobile`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
2023-02-10 22:50:12 +01:00
|
|
|
sectionMessage: (t) => t('clearActivity'),
|
|
|
|
descriptionMessage: (t) => t('clearActivityDescription'),
|
|
|
|
route: `${ADVANCED_ROUTE}#clear-activity`,
|
2022-04-06 22:27:08 +02:00
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('showHexData'),
|
|
|
|
descriptionMessage: (t) => t('showHexDataDescription'),
|
|
|
|
route: `${ADVANCED_ROUTE}#show-hexdata`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('showFiatConversionInTestnets'),
|
|
|
|
descriptionMessage: (t) => t('showFiatConversionInTestnetsDescription'),
|
|
|
|
route: `${ADVANCED_ROUTE}#conversion-testnetworks`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('showTestnetNetworks'),
|
|
|
|
descriptionMessage: (t) => t('showTestnetNetworksDescription'),
|
|
|
|
route: `${ADVANCED_ROUTE}#show-testnets`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('nonceField'),
|
|
|
|
descriptionMessage: (t) => t('nonceFieldDescription'),
|
|
|
|
route: `${ADVANCED_ROUTE}#customize-nonce`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('autoLockTimeLimit'),
|
|
|
|
descriptionMessage: (t) => t('autoLockTimeLimitDescription'),
|
|
|
|
route: `${ADVANCED_ROUTE}#autolock-timer`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('preferredLedgerConnectionType'),
|
|
|
|
descriptionMessage: (t) => t('preferredLedgerConnectionType'),
|
|
|
|
route: `${ADVANCED_ROUTE}#ledger-connection`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('dismissReminderField'),
|
|
|
|
descriptionMessage: (t) => t('dismissReminderDescriptionField'),
|
|
|
|
route: `${ADVANCED_ROUTE}#dimiss-secretrecovery`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
2023-02-06 17:47:50 +01:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('toggleEthSignField'),
|
|
|
|
descriptionMessage: (t) => t('toggleEthSignDescriptionField'),
|
|
|
|
route: `${ADVANCED_ROUTE}#toggle-ethsign`,
|
|
|
|
icon: 'fas fa-sliders-h',
|
|
|
|
},
|
2022-04-06 22:27:08 +02:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('contacts'),
|
|
|
|
sectionMessage: (t) => t('contacts'),
|
|
|
|
descriptionMessage: (t) => t('contacts'),
|
|
|
|
route: CONTACT_LIST_ROUTE,
|
2023-02-16 14:26:00 +01:00
|
|
|
icon: ICON_NAMES.BOOK,
|
2022-04-06 22:27:08 +02:00
|
|
|
},
|
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('snaps'),
|
|
|
|
sectionMessage: (t) => t('snaps'),
|
|
|
|
descriptionMessage: (t) => t('snaps'),
|
|
|
|
route: SNAPS_LIST_ROUTE,
|
|
|
|
icon: 'fa fa-flask',
|
|
|
|
},
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('securityAndPrivacy'),
|
|
|
|
sectionMessage: (t) => t('revealSeedWords'),
|
|
|
|
descriptionMessage: (t) => t('revealSeedWords'),
|
|
|
|
route: `${SECURITY_ROUTE}#reveal-secretrecovery`,
|
|
|
|
icon: 'fa fa-lock',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('securityAndPrivacy'),
|
|
|
|
sectionMessage: (t) => t('showIncomingTransactions'),
|
|
|
|
descriptionMessage: (t) => t('showIncomingTransactionsDescription'),
|
|
|
|
route: `${SECURITY_ROUTE}#incoming-transaction`,
|
|
|
|
icon: 'fa fa-lock',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('securityAndPrivacy'),
|
|
|
|
sectionMessage: (t) => t('usePhishingDetection'),
|
|
|
|
descriptionMessage: (t) => t('usePhishingDetectionDescription'),
|
|
|
|
route: `${SECURITY_ROUTE}#phishing-detection`,
|
|
|
|
icon: 'fa fa-lock',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('securityAndPrivacy'),
|
|
|
|
sectionMessage: (t) => t('participateInMetaMetrics'),
|
|
|
|
descriptionMessage: (t) => t('participateInMetaMetricsDescription'),
|
|
|
|
route: `${SECURITY_ROUTE}#metrametrics`,
|
|
|
|
icon: 'fa fa-lock',
|
|
|
|
},
|
2022-12-19 18:46:36 +01:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('securityAndPrivacy'),
|
|
|
|
sectionMessage: (t) => t('chooseYourNetwork'),
|
|
|
|
descriptionMessage: (t) => t('chooseYourNetworkDescription'),
|
|
|
|
route: `${SECURITY_ROUTE}#-chose-your-network`,
|
|
|
|
icon: 'fa fa-lock',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('securityAndPrivacy'),
|
|
|
|
sectionMessage: (t) => t('addCustomIPFSGateway'),
|
|
|
|
descriptionMessage: (t) => t('addCustomIPFSGatewayDescription'),
|
|
|
|
route: `${SECURITY_ROUTE}#-add-custom-ipfs-gateway`,
|
|
|
|
icon: 'fa fa-lock',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('securityAndPrivacy'),
|
|
|
|
sectionMessage: (t) => t('autoDetectTokens'),
|
|
|
|
descriptionMessage: (t) => t('autoDetectTokensDescription'),
|
|
|
|
route: `${SECURITY_ROUTE}#-auto-detect-tokens`,
|
|
|
|
icon: 'fa fa-lock',
|
|
|
|
},
|
2022-12-12 16:05:21 +01:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('securityAndPrivacy'),
|
|
|
|
sectionMessage: (t) => t('useMultiAccountBalanceChecker'),
|
|
|
|
descriptionMessage: (t) => t('useMultiAccountBalanceCheckerDescription'),
|
2022-12-19 18:46:36 +01:00
|
|
|
route: `${SECURITY_ROUTE}#-use-milti-account-balance-checker`,
|
2022-12-12 16:05:21 +01:00
|
|
|
icon: 'fa fa-lock',
|
|
|
|
},
|
2023-01-17 16:23:04 +01:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('securityAndPrivacy'),
|
|
|
|
sectionMessage: (t) => t('currencyRateCheckToggle'),
|
|
|
|
descriptionMessage: (t) => t('currencyRateCheckToggleDescription'),
|
|
|
|
route: `${SECURITY_ROUTE}#price-checker`,
|
|
|
|
icon: 'fa fa-lock',
|
|
|
|
},
|
2022-04-06 22:27:08 +02:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('alerts'),
|
|
|
|
sectionMessage: (t) => t('alertSettingsUnconnectedAccount'),
|
|
|
|
descriptionMessage: (t) => t('alertSettingsUnconnectedAccount'),
|
|
|
|
route: `${ALERTS_ROUTE}#unconnected-account`,
|
2023-02-11 02:33:11 +01:00
|
|
|
iconName: ICON_NAMES.NOTIFICATION,
|
2022-04-06 22:27:08 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('alerts'),
|
|
|
|
sectionMessage: (t) => t('alertSettingsWeb3ShimUsage'),
|
|
|
|
descriptionMessage: (t) => t('alertSettingsWeb3ShimUsage'),
|
|
|
|
route: `${ALERTS_ROUTE}#web3-shimusage`,
|
|
|
|
icon: 'fa fa-bell',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('networks'),
|
|
|
|
sectionMessage: (t) => t('mainnet'),
|
|
|
|
descriptionMessage: (t) => t('mainnet'),
|
|
|
|
route: `${NETWORKS_ROUTE}#networks-mainnet`,
|
|
|
|
icon: 'fa fa-plug',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('networks'),
|
|
|
|
sectionMessage: (t) => t('goerli'),
|
|
|
|
descriptionMessage: (t) => t('goerli'),
|
|
|
|
route: `${NETWORKS_ROUTE}#networks-goerli`,
|
|
|
|
icon: 'fa fa-plug',
|
|
|
|
},
|
2022-09-14 20:26:45 +02:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('networks'),
|
|
|
|
sectionMessage: (t) => t('sepolia'),
|
|
|
|
descriptionMessage: (t) => t('sepolia'),
|
|
|
|
route: `${NETWORKS_ROUTE}#networks-sepolia`,
|
|
|
|
icon: 'fa fa-plug',
|
|
|
|
},
|
2023-03-21 17:28:38 +01:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('networks'),
|
|
|
|
sectionMessage: (t) => t('lineatestnet'),
|
|
|
|
descriptionMessage: (t) => t('lineatestnet'),
|
|
|
|
route: `${NETWORKS_ROUTE}#networks-lineatestnet`,
|
|
|
|
icon: 'fa fa-plug',
|
|
|
|
},
|
2022-04-06 22:27:08 +02:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('networks'),
|
|
|
|
sectionMessage: (t) => t('localhost'),
|
|
|
|
descriptionMessage: (t) => t('localhost'),
|
|
|
|
route: `${NETWORKS_ROUTE}#networks-localhost`,
|
|
|
|
icon: 'fa fa-plug',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('about'),
|
|
|
|
sectionMessage: (t) => t('metamaskVersion'),
|
|
|
|
descriptionMessage: (t) => t('builtAroundTheWorld'),
|
|
|
|
route: `${ABOUT_US_ROUTE}#version`,
|
|
|
|
icon: 'fa fa-info-circle',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('about'),
|
|
|
|
sectionMessage: (t) => t('links'),
|
|
|
|
descriptionMessage: (t) => t('links'),
|
|
|
|
route: `${ABOUT_US_ROUTE}#links`,
|
|
|
|
icon: 'fa fa-info-circle',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('about'),
|
|
|
|
sectionMessage: (t) => t('privacyMsg'),
|
|
|
|
descriptionMessage: (t) => t('privacyMsg'),
|
|
|
|
route: `${ABOUT_US_ROUTE}#privacy-policy`,
|
|
|
|
icon: 'fa fa-info-circle',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('about'),
|
|
|
|
sectionMessage: (t) => t('terms'),
|
|
|
|
descriptionMessage: (t) => t('terms'),
|
|
|
|
route: `${ABOUT_US_ROUTE}#terms`,
|
|
|
|
icon: 'fa fa-info-circle',
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('about'),
|
|
|
|
sectionMessage: (t) => t('attributions'),
|
|
|
|
descriptionMessage: (t) => t('attributions'),
|
|
|
|
route: `${ABOUT_US_ROUTE}#attributions`,
|
|
|
|
icon: 'fa fa-info-circle',
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('about'),
|
|
|
|
sectionMessage: (t) => t('supportCenter'),
|
|
|
|
descriptionMessage: (t) => t('supportCenter'),
|
|
|
|
route: `${ABOUT_US_ROUTE}#supportcenter`,
|
|
|
|
icon: 'fa fa-info-circle',
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('about'),
|
|
|
|
sectionMessage: (t) => t('visitWebSite'),
|
|
|
|
descriptionMessage: (t) => t('visitWebSite'),
|
|
|
|
route: `${ABOUT_US_ROUTE}#visitwebsite`,
|
|
|
|
icon: 'fa fa-info-circle',
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('about'),
|
|
|
|
sectionMessage: (t) => t('contactUs'),
|
|
|
|
descriptionMessage: (t) => t('contactUs'),
|
|
|
|
route: `${ABOUT_US_ROUTE}#contactus`,
|
|
|
|
icon: 'fa fa-info-circle',
|
|
|
|
},
|
2022-11-09 23:15:44 +01:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('about'),
|
|
|
|
sectionMessage: (t) => t('betaTerms'),
|
|
|
|
descriptionMessage: (t) => t('betaTerms'),
|
|
|
|
route: `${ABOUT_US_ROUTE}#beta-terms`,
|
|
|
|
icon: 'fa fa-info-circle',
|
|
|
|
},
|
2022-04-06 22:27:08 +02:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('experimental'),
|
|
|
|
sectionMessage: (t) => t('enableOpenSeaAPI'),
|
|
|
|
descriptionMessage: (t) => t('enableOpenSeaAPIDescription'),
|
|
|
|
route: `${EXPERIMENTAL_ROUTE}#opensea-api`,
|
|
|
|
icon: 'fa fa-flask',
|
|
|
|
},
|
2023-01-31 19:50:53 +01:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('experimental'),
|
2023-02-10 16:36:58 +01:00
|
|
|
sectionMessage: (t) => t('useNftDetection'),
|
|
|
|
descriptionMessage: (t) => t('useNftDetectionDescription'),
|
2023-01-31 19:50:53 +01:00
|
|
|
route: `${EXPERIMENTAL_ROUTE}#autodetect-nfts`,
|
|
|
|
icon: 'fa fa-flask',
|
|
|
|
},
|
2022-08-09 20:36:32 +02:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('backupUserData'),
|
|
|
|
descriptionMessage: (t) => t('backupUserDataDescription'),
|
|
|
|
route: `${ADVANCED_ROUTE}#backup-userdata`,
|
|
|
|
icon: 'fas fa-download',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tabMessage: (t) => t('advanced'),
|
|
|
|
sectionMessage: (t) => t('restoreUserData'),
|
|
|
|
descriptionMessage: (t) => t('restoreUserDataDescription'),
|
|
|
|
route: `${ADVANCED_ROUTE}#restore-userdata`,
|
|
|
|
icon: 'fas fa-upload',
|
|
|
|
},
|
2022-11-17 15:13:02 +01:00
|
|
|
{
|
|
|
|
tabMessage: (t) => t('experimental'),
|
|
|
|
sectionMessage: (t) => t('transactionSecurityCheck'),
|
|
|
|
descriptionMessage: (t) => t('transactionSecurityCheckDescription'),
|
|
|
|
route: `${EXPERIMENTAL_ROUTE}#transaction-security-check`,
|
|
|
|
icon: 'fa fa-flask',
|
|
|
|
},
|
2022-04-06 22:27:08 +02:00
|
|
|
];
|