Merge pull request #370 from toeverything/fix/i18n-select

Fix/i18n default value
This commit is contained in:
DarkSky
2022-09-05 22:21:57 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
@@ -49,7 +49,7 @@ export const SettingsList = () => {
{item.key === 'Language' ? (
<div style={{ marginLeft: '12em' }}>
<Select
defaultValue={options[0].value}
defaultValue={i18n.language}
onChange={changeLanguage}
>
{options.map(option => (
+1
View File
@@ -32,4 +32,5 @@ const Container = styled(Clickable)({
display: 'flex',
alignItems: 'center',
padding: '6px 12px',
whiteSpace: 'nowrap',
});