1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

User should be able to search setting to batch account balance request (#16887)

This commit is contained in:
Jyoti Puri 2022-12-12 20:35:21 +05:30 committed by seaona
parent c4f9dcc3a5
commit 4e272beb26
3 changed files with 9 additions and 2 deletions

View File

@ -183,6 +183,13 @@ export const SETTINGS_CONSTANTS = [
route: `${SECURITY_ROUTE}#metrametrics`,
icon: 'fa fa-lock',
},
{
tabMessage: (t) => t('securityAndPrivacy'),
sectionMessage: (t) => t('useMultiAccountBalanceChecker'),
descriptionMessage: (t) => t('useMultiAccountBalanceCheckerDescription'),
route: `${SECURITY_ROUTE}#multi-account-balance-checker`,
icon: 'fa fa-lock',
},
{
tabMessage: (t) => t('alerts'),
sectionMessage: (t) => t('alertSettingsUnconnectedAccount'),

View File

@ -169,7 +169,7 @@ describe('Settings Search Utils', () => {
it('should get good security & privacy section number', () => {
expect(
getNumberOfSettingsInSection(t, t('securityAndPrivacy')),
).toStrictEqual(4);
).toStrictEqual(5);
});
it('should get good alerts section number', () => {

View File

@ -173,7 +173,7 @@ export default class SecurityTab extends PureComponent {
this.props;
return (
<div ref={this.settingsRefs[3]} className="settings-page__content-row">
<div ref={this.settingsRefs[4]} className="settings-page__content-row">
<div className="settings-page__content-item">
<span>{t('useMultiAccountBalanceChecker')}</span>
<div className="settings-page__content-description">