diff options
author | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-19 23:04:47 +0200 |
---|---|---|
committer | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-19 23:04:47 +0200 |
commit | 5a3c8d0ed1ecdce69963e79c95d4f910d86e0537 (patch) | |
tree | 3056d813ab12daeacefecebf0fbc645983d7ee7b /modern/src/login | |
parent | 28d4bf17b1c5217b13f44f69bfdd4bb6b40873ed (diff) | |
download | trackermap-web-5a3c8d0ed1ecdce69963e79c95d4f910d86e0537.tar.gz trackermap-web-5a3c8d0ed1ecdce69963e79c95d4f910d86e0537.tar.bz2 trackermap-web-5a3c8d0ed1ecdce69963e79c95d4f910d86e0537.zip |
Use emojis for flags
Diffstat (limited to 'modern/src/login')
-rw-r--r-- | modern/src/login/LoginPage.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/login/LoginPage.js b/modern/src/login/LoginPage.js index 8a64bebf..3ccb954f 100644 --- a/modern/src/login/LoginPage.js +++ b/modern/src/login/LoginPage.js @@ -3,7 +3,6 @@ import moment from 'moment'; import { useMediaQuery, InputLabel, Select, MenuItem, FormControl, Button, TextField, Link, Snackbar, IconButton, Tooltip, LinearProgress, } from '@mui/material'; -import ReactCountryFlag from 'react-country-flag'; import makeStyles from '@mui/styles/makeStyles'; import CloseIcon from '@mui/icons-material/Close'; import LockOpenIcon from '@mui/icons-material/LockOpen'; @@ -11,7 +10,7 @@ import { useTheme } from '@mui/material/styles'; import { useDispatch, useSelector } from 'react-redux'; import { useNavigate } from 'react-router-dom'; import { sessionActions } from '../store'; -import { useLocalization, useTranslation } from '../common/components/LocalizationProvider'; +import { useLocalization, useTranslation, getFlagEmoji } from '../common/components/LocalizationProvider'; import LoginLayout from './LoginLayout'; import usePersistedState from '../common/util/usePersistedState'; import { handleLoginTokenListeners, nativeEnvironment, nativePostMessage } from '../common/components/NativeInterface'; @@ -212,7 +211,7 @@ const LoginPage = () => { <Select label={t('loginLanguage')} value={language} onChange={(e) => setLanguage(e.target.value)}> {languageList.map((it) => ( <MenuItem key={it.code} value={it.code}> - <ReactCountryFlag countryCode={it.countryCode} /> + {getFlagEmoji(it.countryCode)} {it.name} </MenuItem> |