Revert "Merge branch 'i18n' into 'master'"

This reverts merge request !51
This commit is contained in:
Aarni Halinen
2021-04-02 18:39:26 +00:00
parent 9e7fe73c04
commit 7e0b0d2ae8
32 changed files with 111 additions and 721 deletions
-26
View File
@@ -1,26 +0,0 @@
import React from "react";
import styled from "styled-components";
import i18nNext from "../i18n";
import Icon, { IconType } from "./Icon";
const ChangeLanguageButton: React.FC = (props) => {
const { language, changeLanguage } = i18nNext.i18n;
return (
<button
{...props}
type="button"
onClick={() => {
changeLanguage(language === "fi" ? "en" : "fi");
}}
>
<Icon name={language === "fi" ? IconType.GBFlag : IconType.FinlandFlag} />
</button>
);
};
export default styled(ChangeLanguageButton)`
font-size: 4rem;
background: none;
border: none;
width: fit-content;
`;