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