mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
flags on signin page
This commit is contained in:
@@ -24,6 +24,8 @@ import { ReactComponent as NLflag } from './i18n/NL.svg';
|
|||||||
import { ReactComponent as DEflag } from './i18n/DE.svg';
|
import { ReactComponent as DEflag } from './i18n/DE.svg';
|
||||||
import { ReactComponent as GBflag } from './i18n/GB.svg';
|
import { ReactComponent as GBflag } from './i18n/GB.svg';
|
||||||
import { ReactComponent as SEflag } from './i18n/SE.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 SignIn: FC = () => {
|
||||||
const authenticationContext = useContext(AuthenticationContext);
|
const authenticationContext = useContext(AuthenticationContext);
|
||||||
@@ -125,6 +127,14 @@ const SignIn: FC = () => {
|
|||||||
<SEflag style={{ width: 24 }} />
|
<SEflag style={{ width: 24 }} />
|
||||||
SE
|
SE
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button size="small" variant={locale === 'pl' ? 'contained' : 'outlined'} onClick={() => selectLocale('pl')}>
|
||||||
|
<PLflag style={{ width: 24 }} />
|
||||||
|
PL
|
||||||
|
</Button>
|
||||||
|
<Button disabled size="small" variant={locale === 'no' ? 'contained' : 'outlined'} onClick={() => selectLocale('no')}>
|
||||||
|
<NOflag style={{ width: 24 }} />
|
||||||
|
NO
|
||||||
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<ValidatedTextField
|
<ValidatedTextField
|
||||||
|
|||||||
Reference in New Issue
Block a user