@@ -14,27 +14,26 @@ See the License for the specific language governing permissions and
1414limitations under the License.
1515*/
1616
17- 'use strict' ;
18- const React = require ( 'react' ) ;
19- import { _t , _tJsx } from 'matrix-react-sdk/lib/languageHandler' ;
17+ import React from 'react' ;
2018import Promise from 'bluebird' ;
21- const sdk = require ( 'matrix-react-sdk' ) ;
22- const MatrixClientPeg = require ( 'matrix-react-sdk/lib/MatrixClientPeg' ) ;
23- const UserSettingsStore = require ( 'matrix-react-sdk/lib/UserSettingsStore' ) ;
24- const Modal = require ( 'matrix-react-sdk/lib/Modal' ) ;
25-
26- const notifications = require ( '../../../notifications' ) ;
19+ import sdk from 'matrix-react-sdk' ;
20+ import { _t , _tJsx } from 'matrix-react-sdk/lib/languageHandler' ;
21+ import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg' ;
22+ import UserSettingsStore from 'matrix-react-sdk/lib/UserSettingsStore' ;
23+ import Modal from 'matrix-react-sdk/lib/Modal' ;
24+ import {
25+ NotificationUtils ,
26+ VectorPushRulesDefinitions ,
27+ PushRuleVectorState ,
28+ ContentRules
29+ } from '../../../notifications' ;
2730
2831// TODO: this "view" component still has far too much application logic in it,
2932// which should be factored out to other files.
3033
3134// TODO: this component also does a lot of direct poking into this.state, which
3235// is VERY NAUGHTY.
3336
34- const NotificationUtils = notifications . NotificationUtils ;
35- const VectorPushRulesDefinitions = notifications . VectorPushRulesDefinitions ;
36- const PushRuleVectorState = notifications . PushRuleVectorState ;
37- const ContentRules = notifications . ContentRules ;
3837
3938/**
4039 * Rules that Vector used to set in order to override the actions of default rules.
0 commit comments