Skip to content

Commit

Permalink
Added toast container
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Jun 28, 2024
1 parent 8a70f74 commit c4634d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/pages/Dashboard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -232,7 +232,7 @@ class Dashboard extends Component {
));
});

channel.bind(EVENT_ALL_GISTS_DELETED, data => {
channel.bind(EVENT_ALL_GISTS_DELETED, _ => {
toast.success(() => <p>All the gists have been deleted successfully!</p>);
pusher.disconnect();
});
Expand Down Expand Up @@ -282,6 +282,7 @@ class Dashboard extends Component {
render() {
return (
<div className="bg-gray-100">
<ToastContainer />
<header className="flex justify-center bg-black text-white p-2 header">
<a href={ROUTE_LANDING_PAGE} className="flex align-middle">
<img src={logo} alt="Gist Cleaner logo" className="page-logo" />
Expand Down

0 comments on commit c4634d6

Please sign in to comment.