Revert "Merge branch 'i18n' into 'master'"
This reverts merge request !51
This commit is contained in:
@@ -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;
|
||||
`;
|
||||
Reference in New Issue
Block a user