diff --git a/src/containers/login.js b/src/containers/login.js index 7f62ab4..9453900 100644 --- a/src/containers/login.js +++ b/src/containers/login.js @@ -10,10 +10,12 @@ import React, { Component } from 'react'; import { Container } from 'flux/utils'; import { PageHeader } from 'react-bootstrap'; +import NotificationSystem from 'react-notification-system'; import LoginForm from '../components/login-form'; import Header from '../components/header'; import Footer from '../components/footer'; +import NotificationsDataManager from '../data-managers/notifications-data-manager'; import AppDispatcher from '../app-dispatcher'; import UserStore from '../stores/user-store'; @@ -30,6 +32,10 @@ class Login extends Component { }; } + componentDidMount() { + NotificationsDataManager.setSystem(this.refs.notificationSystem); + } + componentWillUpdate(nextProps, nextState) { // if token stored locally, request user if (nextState.token == null) { @@ -56,6 +62,8 @@ class Login extends Component { render() { return (