Remove Notifier and put it in react-sdk

This commit is contained in:
Kegan Dougal 2015-11-30 15:05:00 +00:00
parent fd4d7eba12
commit 2b37e5334a
4 changed files with 2 additions and 105 deletions

View file

@ -17,19 +17,17 @@ limitations under the License.
'use strict';
var React = require('react');
var Notifier = require("matrix-react-sdk/lib/Notifier");
var sdk = require('matrix-react-sdk')
module.exports = React.createClass({
displayName: 'MatrixToolbar',
hideToolbar: function() {
var Notifier = sdk.getComponent('organisms.Notifier');
Notifier.setToolbarHidden(true);
},
onClick: function() {
var Notifier = sdk.getComponent('organisms.Notifier');
Notifier.setEnabled(true);
},