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