toogle besser

This commit is contained in:
JM 2026-05-06 11:39:12 +02:00
parent e9ac53fe73
commit 6cdd340e50
1 changed files with 13 additions and 10 deletions

View File

@ -48,13 +48,16 @@ class TeamsSettingsBlock extends Component {
return (
<Switch
state={!!prefs[key]}
onchange={(value) => user.savePreferences({ [key]: value })}
onchange={(value) =>
user.savePreferences({
[key]: value,
})
}
>
{label}
</Switch>
);
}
}
export default function addTeamsSettings() {
extend(SettingsPage.prototype, 'content', function (vnode) {