diff options
Diffstat (limited to 'src/components/Settings.js')
| -rw-r--r-- | src/components/Settings.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/components/Settings.js b/src/components/Settings.js index a0dbab5..837b4f0 100644 --- a/src/components/Settings.js +++ b/src/components/Settings.js | |||
| @@ -1,4 +1,10 @@ | |||
| 1 | import { Checkbox, Pane, RadioGroup, SelectField } from 'evergreen-ui'; | 1 | import { |
| 2 | Checkbox, | ||
| 3 | Pane, | ||
| 4 | RadioGroup, | ||
| 5 | SelectField, | ||
| 6 | TextInputField, | ||
| 7 | } from 'evergreen-ui'; | ||
| 2 | import { useEffect } from 'react'; | 8 | import { useEffect } from 'react'; |
| 3 | import { useTranslation } from 'react-i18next'; | 9 | import { useTranslation } from 'react-i18next'; |
| 4 | import i18n from '../i18n'; | 10 | import i18n from '../i18n'; |
| @@ -62,6 +68,19 @@ export const Settings = (props) => { | |||
| 62 | checked={props.settings.hiddenSSID} | 68 | checked={props.settings.hiddenSSID} |
| 63 | onChange={() => props.onHiddenSSIDChange(!props.settings.hiddenSSID)} | 69 | onChange={() => props.onHiddenSSIDChange(!props.settings.hiddenSSID)} |
| 64 | /> | 70 | /> |
| 71 | |||
| 72 | <Checkbox | ||
| 73 | label={t('cards.tip.hide')} | ||
| 74 | checked={props.settings.hideTip} | ||
| 75 | onChange={() => props.onHideTipChange(!props.settings.hideTip)} | ||
| 76 | /> | ||
| 77 | <TextInputField | ||
| 78 | type="number" | ||
| 79 | width={300} | ||
| 80 | label={t('cards.additional')} | ||
| 81 | value={props.settings.additionalCards} | ||
| 82 | onChange={(e) => props.onAdditionalCardsChange(e.target.value)} | ||
| 83 | /> | ||
| 65 | <RadioGroup | 84 | <RadioGroup |
| 66 | label={t('wifi.password.encryption')} | 85 | label={t('wifi.password.encryption')} |
| 67 | size={16} | 86 | size={16} |
