Move Notifier to src/ since it isn't a component.

This commit is contained in:
Kegan Dougal 2015-11-30 15:04:24 +00:00
parent 8a98fcd427
commit 945a65f4b5
3 changed files with 75 additions and 9 deletions

View file

@ -16,6 +16,7 @@ limitations under the License.
'use strict';
var React = require("react");
var Notifier = require("../../../Notifier");
var sdk = require('../../../index');
var dis = require("../../../dispatcher");
@ -38,12 +39,10 @@ module.exports = React.createClass({
},
enabled: function() {
var Notifier = sdk.getComponent('organisms.Notifier');
return Notifier.isEnabled();
},
onClick: function() {
var Notifier = sdk.getComponent('organisms.Notifier');
var self = this;
if (!Notifier.supportsDesktopNotifications()) {
return;