aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/PreferencesPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-23 09:00:08 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-23 09:00:08 -0700
commit7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1 (patch)
tree893861c605696516c1c4c3d06179ace6376f2765 /modern/src/settings/PreferencesPage.js
parentb98137ab304e8068484926eb31b77bd727a6407d (diff)
downloadtrackermap-web-7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1.tar.gz
trackermap-web-7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1.tar.bz2
trackermap-web-7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1.zip
Fix select field labels
Diffstat (limited to 'modern/src/settings/PreferencesPage.js')
-rw-r--r--modern/src/settings/PreferencesPage.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/modern/src/settings/PreferencesPage.js b/modern/src/settings/PreferencesPage.js
index 7c0d4aee..93ded1f0 100644
--- a/modern/src/settings/PreferencesPage.js
+++ b/modern/src/settings/PreferencesPage.js
@@ -55,7 +55,11 @@ const PreferencesPage = () => {
<AccordionDetails className={classes.details}>
<FormControl fullWidth>
<InputLabel>{t('loginLanguage')}</InputLabel>
- <Select value={language} onChange={(e) => setLanguage(e.target.value)}>
+ <Select
+ label={t('loginLanguage')}
+ value={language}
+ onChange={(e) => setLanguage(e.target.value)}
+ >
{languageList.map((it) => <MenuItem key={it.code} value={it.code}>{it.name}</MenuItem>)}
</Select>
</FormControl>
@@ -71,6 +75,7 @@ const PreferencesPage = () => {
<FormControl fullWidth>
<InputLabel>{t('sharedAttributes')}</InputLabel>
<Select
+ label={t('sharedAttributes')}
value={positionItems}
onChange={(e) => setPositionItems(e.target.value)}
renderValue={(it) => it.length}