Revert "wieder anders"

This reverts commit c0a7e07ea0dcf07ec5c345cc3ca68da2f114e59b.
This commit is contained in:
JM 2026-05-06 11:20:05 +02:00
parent cd34d37984
commit 998b11c519
1 changed files with 4 additions and 5 deletions

View File

@ -14,7 +14,7 @@ class TeamsSettingsBlock extends Component {
<Switch
state={user.preference('sbp-jm-msteams.enabled')}
onchange={(value) =>
onchange={value =>
user.savePreferences({
'sbp-jm-msteams.enabled': value,
})
@ -50,7 +50,7 @@ class TeamsSettingsBlock extends Component {
return (
<Switch
state={user.preference(key)}
onchange={(value) =>
onchange={value =>
user.savePreferences({
[key]: value,
})
@ -63,8 +63,7 @@ class TeamsSettingsBlock extends Component {
}
export default function addTeamsSettings() {
extend(SettingsPage.prototype, 'content', function (vnode) {
// ✅ content ist ein Array → push!
vnode.children.push(<TeamsSettingsBlock />);
extend(SettingsPage.prototype, 'content', function (items) {
items.add('teams-settings', <TeamsSettingsBlock />, 50);
});
}