diff --git a/locales/en-US/app.ftl b/locales/en-US/app.ftl index be577ee3a9..0e45985893 100644 --- a/locales/en-US/app.ftl +++ b/locales/en-US/app.ftl @@ -315,16 +315,17 @@ ErrorBoundary--report-error-to-developers-description = # This is used in a call to action button, displayed inside the error box. ErrorBoundary--report-error-on-github = Report the error on GitHub -## Footer Links - -FooterLinks--legal = Legal -FooterLinks--Privacy = Privacy -FooterLinks--Cookies = Cookies -FooterLinks--languageSwitcher--select = +## Settings Menu +## The settings popup opened from the cog icon in the top bar. + +SettingsMenu--button = + .title = Settings +SettingsMenu--docs = Documentation +SettingsMenu--legal = Legal +SettingsMenu--privacy = Privacy +SettingsMenu--cookies = Cookies +SettingsMenu--language-switcher = .title = Change language -FooterLinks--hide-button = - .title = Hide footer links - .aria-label = Hide footer links ## FullTimeline ## The timeline component of the full view in the analysis UI at the top of the @@ -576,7 +577,6 @@ MenuButtons--index--share-error-uploading = .label = Error uploading MenuButtons--index--revert = Revert to Original Profile -MenuButtons--index--docs = Docs MenuButtons--permalink--button = .label = Permalink diff --git a/res/img/svg/cog-12.svg b/res/img/svg/cog-12.svg new file mode 100644 index 0000000000..e0cb45dfe1 --- /dev/null +++ b/res/img/svg/cog-12.svg @@ -0,0 +1,6 @@ + + + + diff --git a/res/img/svg/cog-light-12.svg b/res/img/svg/cog-light-12.svg new file mode 100644 index 0000000000..8f02e82250 --- /dev/null +++ b/res/img/svg/cog-light-12.svg @@ -0,0 +1,6 @@ + + + + diff --git a/src/components/app/AppHeader.tsx b/src/components/app/AppHeader.tsx index 6dc0eb9649..e4d9a4f37a 100644 --- a/src/components/app/AppHeader.tsx +++ b/src/components/app/AppHeader.tsx @@ -9,7 +9,7 @@ import * as React from 'react'; import { InnerNavigationLink } from 'firefox-profiler/components/shared/InnerNavigationLink'; -import { ThemeToggle } from './ThemeToggle'; +import { SettingsMenu } from './SettingsMenu'; import './AppHeader.css'; import { Localized } from '@fluent/react'; @@ -44,7 +44,7 @@ export class AppHeader extends React.PureComponent<{}> {
- + { - _onClick = () => { - this.setState({ hide: true }); - }; - - override state = { - hide: false, - }; - - override render() { - if (this.state.hide) { - return null; - } - return ( -
- - - - - Legal - - - Privacy - - - Cookies - - -
- ); - } -} diff --git a/src/components/app/LanguageSwitcher.tsx b/src/components/app/LanguageSwitcher.tsx index b2d0250121..913df025fe 100644 --- a/src/components/app/LanguageSwitcher.tsx +++ b/src/components/app/LanguageSwitcher.tsx @@ -30,12 +30,9 @@ export function LanguageSwitcher(): React.ReactNode { } return ( - + - - - - - - - - - - - - - - - - - - - - - -
- - -`; diff --git a/src/test/components/__snapshots__/Home.test.tsx.snap b/src/test/components/__snapshots__/Home.test.tsx.snap index 11f8ccb4c8..ab7c516333 100644 --- a/src/test/components/__snapshots__/Home.test.tsx.snap +++ b/src/test/components/__snapshots__/Home.test.tsx.snap @@ -31,38 +31,14 @@ exports[`app/Home renders a button to enable the popup in Firefox 1`] = ` class="appHeaderRightControls" >
- - + />
- - + />
- - + />
- - + />
can publish and revert 1`] = ` - - Docs - + - - Docs -