From 937c7c91668c442ebceb865437cc3baf5d3d5102 Mon Sep 17 00:00:00 2001 From: Elmo Kankkunen Date: Tue, 13 Sep 2022 16:53:00 +0300 Subject: [PATCH 1/3] Changed language button to an svg image --- src/components/ChangeLanguageButton.tsx | 2 +- src/components/Icon.tsx | 32 +++++++++++++++++++------ 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/src/components/ChangeLanguageButton.tsx b/src/components/ChangeLanguageButton.tsx index 4a49483..e9ef880 100644 --- a/src/components/ChangeLanguageButton.tsx +++ b/src/components/ChangeLanguageButton.tsx @@ -23,5 +23,5 @@ export default styled(ChangeLanguageButton)` font-size: 4rem; background: none; border: none; - width: fit-content; + width: 2cm; `; diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index cae974b..4e83446 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -70,16 +70,34 @@ const nameToIcon = (name: IconType): JSX.Element | null => { } if (name === IconType.FinlandFlag) { return ( - - 🇫🇮 - - ); + + Menu + {/* eslint-disable-next-line max-len */} + + + + + ); } if (name === IconType.GBFlag) { return ( - - 🇬🇧 - + + Menu + {/* eslint-disable-next-line max-len */} + + + + + + ); } return null; From 11bd5a90a246f0e82c3e9c2aa4a8a9ddb5baf616 Mon Sep 17 00:00:00 2001 From: Elmo Kankkunen Date: Tue, 13 Sep 2022 17:21:42 +0300 Subject: [PATCH 2/3] Fixed indentation --- src/components/Icon.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index 4e83446..c0fa5df 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -77,11 +77,11 @@ const nameToIcon = (name: IconType): JSX.Element | null => { > Menu {/* eslint-disable-next-line max-len */} - - - - - ); + + + + + ); } if (name === IconType.GBFlag) { return ( @@ -92,12 +92,12 @@ const nameToIcon = (name: IconType): JSX.Element | null => { > Menu {/* eslint-disable-next-line max-len */} - - - - - - + + + + + + ); } return null; From 0380ee7d6d93f8920643f8147f2456f53a72cedf Mon Sep 17 00:00:00 2001 From: Elmo Kankkunen Date: Tue, 13 Sep 2022 17:29:52 +0300 Subject: [PATCH 3/3] Changed language icons to svg images --- src/components/Icon.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index c0fa5df..4392833 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -75,8 +75,7 @@ const nameToIcon = (name: IconType): JSX.Element | null => { viewBox="0 0 640 480" xmlns="http://www.w3.org/2000/svg" > - Menu - {/* eslint-disable-next-line max-len */} + Finland flag @@ -90,8 +89,7 @@ const nameToIcon = (name: IconType): JSX.Element | null => { viewBox="0 0 640 480" xmlns="http://www.w3.org/2000/svg" > - Menu - {/* eslint-disable-next-line max-len */} + GB flag