1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Add search information for Theme dropdown (#14476)

This commit is contained in:
David Walsh 2022-05-04 09:57:01 -05:00 committed by Dan Miller
parent 57e7d05bfa
commit 7325549940
3 changed files with 9 additions and 2 deletions

View File

@ -306,6 +306,13 @@ export const SETTINGS_CONSTANTS = [
route: `${EXPERIMENTAL_ROUTE}#enable-advanced-gas`,
icon: 'fa fa-flask',
},
{
tabMessage: (t) => t('experimental'),
sectionMessage: (t) => t('theme'),
descriptionMessage: (t) => t('themeDescription'),
route: `${EXPERIMENTAL_ROUTE}#theme`,
icon: 'fa fa-flask',
},
{
// TODO: Remove during TOKEN_DETECTION_V2 feature flag clean up
tabMessage: (t) => t('advanced'),

View File

@ -195,7 +195,7 @@ describe('Settings Search Utils', () => {
it('should get good experimental section number', () => {
expect(getNumberOfSettingsInSection(t, t('experimental'))).toStrictEqual(
2,
3,
);
});

View File

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