diff --git a/js/src/forum/addTeamsSettings.js b/js/src/forum/addTeamsSettings.js
index 5020b85..db794ef 100644
--- a/js/src/forum/addTeamsSettings.js
+++ b/js/src/forum/addTeamsSettings.js
@@ -27,12 +27,14 @@ class TeamsSettingsBlock extends Component {
'sbp-jm-msteams.types.newPost',
'Someone replies to a discussion I am following'
)}
+
{this.prefSwitch(
user,
prefs,
'sbp-jm-msteams.types.postMentioned',
'Someone mentions me in a post'
)}
+
{this.prefSwitch(
user,
prefs,
@@ -44,23 +46,25 @@ class TeamsSettingsBlock extends Component {
);
}
-prefSwitch(user, prefs, key, label) {
- return (
-
- user.savePreferences({
- [key]: value,
- })
- }
- >
- {label}
-
- );
+ prefSwitch(user, prefs, key, label) {
+ return (
+ {
+ user.savePreferences({
+ [key]: value,
+ });
+ }}
+ >
+ {label}
+
+ );
+ }
}
export default function addTeamsSettings() {
extend(SettingsPage.prototype, 'content', function (vnode) {
+ // content ist in Flarum 1.x ein VNode mit children[]
vnode.children.push();
});
}
\ No newline at end of file