flags on signin page

This commit is contained in:
MichaelDvP
2022-10-07 11:14:19 +02:00
parent bace01e4f7
commit d1fc050bed

View File

@@ -24,6 +24,8 @@ import { ReactComponent as NLflag } from './i18n/NL.svg';
import { ReactComponent as DEflag } from './i18n/DE.svg';
import { ReactComponent as GBflag } from './i18n/GB.svg';
import { ReactComponent as SEflag } from './i18n/SE.svg';
import { ReactComponent as PLflag } from './i18n/PL.svg';
import { ReactComponent as NOflag } from './i18n/NO.svg';
const SignIn: FC = () => {
const authenticationContext = useContext(AuthenticationContext);
@@ -125,6 +127,14 @@ const SignIn: FC = () => {
<SEflag style={{ width: 24 }} />
&nbsp;SE
</Button>
<Button size="small" variant={locale === 'pl' ? 'contained' : 'outlined'} onClick={() => selectLocale('pl')}>
<PLflag style={{ width: 24 }} />
&nbsp;PL
</Button>
<Button disabled size="small" variant={locale === 'no' ? 'contained' : 'outlined'} onClick={() => selectLocale('no')}>
<NOflag style={{ width: 24 }} />
&nbsp;NO
</Button>
</Box>
<ValidatedTextField