Adding LocaleSwitcher to Header

This commit is contained in:
Jeff Avallone 2018-05-31 19:07:29 -04:00
parent 2fc961725a
commit 2656edf27e
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,9 @@ exports[`Header rendering 1`] = `
</Trans>
</a>
</li>
<li>
<Translate(LocaleSwitcher) />
</li>
</ul>
</header>
`;

View File

@ -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>
);