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

View File

@@ -49,7 +49,7 @@ export const SettingsList = () => {
{item.key === 'Language' ? ( {item.key === 'Language' ? (
<div style={{ marginLeft: '12em' }}> <div style={{ marginLeft: '12em' }}>
<Select <Select
defaultValue={options[0].value} defaultValue={i18n.language}
onChange={changeLanguage} onChange={changeLanguage}
> >
{options.map(option => ( {options.map(option => (

View File

@@ -32,4 +32,5 @@ const Container = styled(Clickable)({
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
padding: '6px 12px', padding: '6px 12px',
whiteSpace: 'nowrap',
}); });