diff --git a/web/src/pages/Dashboard/index.jsx b/web/src/pages/Dashboard/index.jsx index dcf89ee..5767c73 100644 --- a/web/src/pages/Dashboard/index.jsx +++ b/web/src/pages/Dashboard/index.jsx @@ -21,7 +21,7 @@ import { import CheckBox from '../../components/CheckBox'; import postscribe from 'postscribe'; import moment from 'moment'; -import { toast } from 'react-toastify'; +import { ToastContainer, toast } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.min.css'; import Pusher from 'pusher-js'; @@ -232,7 +232,7 @@ class Dashboard extends Component { )); }); - channel.bind(EVENT_ALL_GISTS_DELETED, data => { + channel.bind(EVENT_ALL_GISTS_DELETED, _ => { toast.success(() =>
All the gists have been deleted successfully!
); pusher.disconnect(); }); @@ -282,6 +282,7 @@ class Dashboard extends Component { render() { return (