themes ux review (#646)
This commit is contained in:
parent
1e2de8d570
commit
347a2db8bd
1 changed files with 3 additions and 5 deletions
|
@ -272,9 +272,9 @@ export const RealmSettingsThemesTab = ({
|
|||
render={({ value, onChange }) => (
|
||||
<Select
|
||||
toggleId="kc-supported-locales"
|
||||
onToggle={() =>
|
||||
setSupportedLocalesOpen(!supportedLocalesOpen)
|
||||
}
|
||||
onToggle={() => {
|
||||
setSupportedLocalesOpen(!supportedLocalesOpen);
|
||||
}}
|
||||
onSelect={(_, v) => {
|
||||
const option = v as string;
|
||||
if (!value) {
|
||||
|
@ -283,10 +283,8 @@ export const RealmSettingsThemesTab = ({
|
|||
onChange(
|
||||
value.filter((item: string) => item !== option)
|
||||
);
|
||||
setSupportedLocalesOpen(false);
|
||||
} else {
|
||||
onChange([...value, option]);
|
||||
setSupportedLocalesOpen(false);
|
||||
}
|
||||
}}
|
||||
onClear={() => {
|
||||
|
|
Loading…
Reference in a new issue