notification-system
Advanced tools
Comparing version 1.0.3 to 1.0.4
26
index.js
@@ -1,13 +0,12 @@ | ||
import React, { Component } from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import NotificationSystem from 'react-notification-system'; | ||
import React, { Component } from 'react' | ||
import NotificationSystem from 'react-notification-system' | ||
export default class Notification extends React.Component { | ||
class Notification extends Component { | ||
componentDidMount() { | ||
this._notificationSystem = this.refs.notificationSystem; | ||
this._notificationSystem.addNotification({ | ||
message: 'Notification message', | ||
level: 'success' | ||
}); | ||
// this._notificationSystem = this.refs.notificationSystem; | ||
// this._notificationSystem.addNotification({ | ||
// message: 'Notification message', | ||
// level: 'success' | ||
// }); | ||
} | ||
@@ -19,11 +18,8 @@ | ||
<p>Test</p> | ||
<NotificationSystem ref="notificationSystem" {...this.props} /> | ||
{/*<NotificationSystem ref="notificationSystem" {...this.props} />*/} | ||
</div> | ||
); | ||
) | ||
} | ||
} | ||
ReactDOM.render( | ||
React.createElement(Notification), | ||
document.getElementById('admin_app') | ||
); | ||
export default Notification |
{ | ||
"name": "notification-system", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "React Notification System ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
894
20