toogle besser
This commit is contained in:
parent
e9ac53fe73
commit
6cdd340e50
|
|
@ -44,16 +44,19 @@ class TeamsSettingsBlock extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
prefSwitch(user, prefs, key, label) {
|
prefSwitch(user, prefs, key, label) {
|
||||||
return (
|
return (
|
||||||
<Switch
|
<Switch
|
||||||
state={!!prefs[key]}
|
state={!!prefs[key]}
|
||||||
onchange={(value) => user.savePreferences({ [key]: value })}
|
onchange={(value) =>
|
||||||
|
user.savePreferences({
|
||||||
|
[key]: value,
|
||||||
|
})
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</Switch>
|
</Switch>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function addTeamsSettings() {
|
export default function addTeamsSettings() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue