Adding LocaleSwitcher to Header
This commit is contained in:
parent
2fc961725a
commit
2656edf27e
@ -25,6 +25,9 @@ exports[`Header rendering 1`] = `
|
||||
</Trans>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<Translate(LocaleSwitcher) />
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
`;
|
||||
|
@ -4,6 +4,8 @@ import { translate, Trans } from 'react-i18next';
|
||||
import style from './style.css';
|
||||
import GithubIcon from 'feather-icons/dist/icons/github.svg';
|
||||
|
||||
import LocaleSwitcher from 'components/LocaleSwitcher';
|
||||
|
||||
const Header = () => (
|
||||
<header className={ style.header } data-banner={ process.env.BANNER }>
|
||||
<h1>
|
||||
@ -14,6 +16,7 @@ const Header = () => (
|
||||
<li><a href="https://github.com/javallone/regexper-static" rel="external noopener noreferrer" target="_blank">
|
||||
<GithubIcon/><Trans>Source on GitHub</Trans>
|
||||
</a></li>
|
||||
<li><LocaleSwitcher /></li>
|
||||
</ul>
|
||||
</header>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user