From 2fde0c6d8cd551ff7d491d1e29bba5714dc0a505 Mon Sep 17 00:00:00 2001 From: Proddy Date: Tue, 6 Sep 2022 16:43:32 +0200 Subject: [PATCH] add flag to menubar - #22 --- interface/src/SignIn.tsx | 10 ++---- .../src/components/layout/LayoutAuthMenu.tsx | 33 +++++++++++++++---- src/version.h | 2 +- 3 files changed, 29 insertions(+), 16 deletions(-) diff --git a/interface/src/SignIn.tsx b/interface/src/SignIn.tsx index de5e9c25e..686d61aa5 100644 --- a/interface/src/SignIn.tsx +++ b/interface/src/SignIn.tsx @@ -103,14 +103,8 @@ const SignIn: FC = () => { diff --git a/interface/src/components/layout/LayoutAuthMenu.tsx b/interface/src/components/layout/LayoutAuthMenu.tsx index c078ae72b..88d11d48b 100644 --- a/interface/src/components/layout/LayoutAuthMenu.tsx +++ b/interface/src/components/layout/LayoutAuthMenu.tsx @@ -21,9 +21,12 @@ import { AuthenticatedContext } from '../../contexts/authentication'; import { I18nContext } from '../../i18n/i18n-react'; import type { Locales } from '../../i18n/i18n-types'; -import { locales } from '../..//i18n/i18n-util'; import { loadLocaleAsync } from '../../i18n/i18n-util.async'; +import { ReactComponent as NLflag } from '../../i18n/NL.svg'; +import { ReactComponent as DEflag } from '../../i18n/DE.svg'; +import { ReactComponent as USflag } from '../../i18n/US.svg'; + const ItemTypography = styled(Typography)({ maxWidth: '250px', whiteSpace: 'nowrap', @@ -58,13 +61,29 @@ const LayoutAuthMenu: FC = () => { return ( <> - - {locales.map((loc) => ( - - {loc} - - ))} + + + +  EN + + + +  DE + + + +  NL + +