fsd
This commit is contained in:
parent
b2cc14f7be
commit
069cd3b3ad
|
|
@ -50,11 +50,11 @@ class TeamsSettingsBlock extends Component {
|
||||||
return (
|
return (
|
||||||
<Switch
|
<Switch
|
||||||
state={!!prefs[key]}
|
state={!!prefs[key]}
|
||||||
onchange={(value) => {
|
onchange={(value) =>
|
||||||
user.savePreferences({
|
user.savePreferences({
|
||||||
[key]: value,
|
[key]: value,
|
||||||
});
|
})
|
||||||
}}
|
}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</Switch>
|
</Switch>
|
||||||
|
|
@ -64,7 +64,6 @@ class TeamsSettingsBlock extends Component {
|
||||||
|
|
||||||
export default function addTeamsSettings() {
|
export default function addTeamsSettings() {
|
||||||
extend(SettingsPage.prototype, 'content', function (vnode) {
|
extend(SettingsPage.prototype, 'content', function (vnode) {
|
||||||
// content ist in Flarum 1.x ein VNode mit children[]
|
|
||||||
vnode.children.push(<TeamsSettingsBlock />);
|
vnode.children.push(<TeamsSettingsBlock />);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue