This commit is contained in:
JM 2026-05-06 11:47:38 +02:00
parent b2cc14f7be
commit 069cd3b3ad
1 changed files with 4 additions and 5 deletions

View File

@ -50,11 +50,11 @@ class TeamsSettingsBlock extends Component {
return (
<Switch
state={!!prefs[key]}
onchange={(value) => {
onchange={(value) =>
user.savePreferences({
[key]: value,
});
}}
})
}
>
{label}
</Switch>
@ -64,7 +64,6 @@ class TeamsSettingsBlock extends Component {
export default function addTeamsSettings() {
extend(SettingsPage.prototype, 'content', function (vnode) {
// content ist in Flarum 1.x ein VNode mit children[]
vnode.children.push(<TeamsSettingsBlock />);
});
}
}