Fix jumpy ui when changing language

Closes 7070 Spinner at wrong location when changing language
This commit is contained in:
infinite-persistence 2021-09-13 15:42:46 +08:00
parent c2a2068926
commit 40ed8059b7
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -35,8 +35,7 @@ function SettingLanguage(props: Props) {
return (
<React.Fragment>
{previousLanguage && <Spinner type="small" />}
{!previousLanguage && (
<FormField
name="language_select"
type="select"
@ -49,6 +48,9 @@ function SettingLanguage(props: Props) {
</option>
))}
</FormField>
)}
{previousLanguage && <Spinner type="small" />}
</React.Fragment>
);
}