Additional refactor to further modularise the context menus

This commit is contained in:
wmwragg 2016-07-27 11:26:36 +01:00
parent 5cf164fcc1
commit dab707a893
5 changed files with 74 additions and 14 deletions

View file

@ -98,13 +98,13 @@ module.exports = React.createClass({
var cli = MatrixClientPeg.get();
var allNotifsClasses = classNames({
'mx_ContextualMenu_field': true,
'mx_ContextualMenu_fieldSet': !this.state.areNotifsMuted,
'mx_NotificationStateContextMenu_field': true,
'mx_NotificationStateContextMenu_fieldSet': !this.state.areNotifsMuted,
});
var muteNotifsClasses = classNames({
'mx_ContextualMenu_field': true,
'mx_ContextualMenu_fieldSet': this.state.areNotifsMuted,
'mx_NotificationStateContextMenu_field': true,
'mx_NotificationStateContextMenu_fieldSet': this.state.areNotifsMuted,
});
return (