From d5dbff6089b366067df755704b55576e52af43a7 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Fri, 30 Jul 2021 01:21:02 +0300 Subject: [PATCH] ToastContainer on application root --- src/components/App.js | 2 ++ src/pages/notifications/Notifications.js | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index 7f6ca2f..a7fdd43 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,5 +1,6 @@ import React, { useEffect } from "react"; import { HashRouter, Route, Switch, Redirect } from "react-router-dom"; +import ToastContainer from "./toast/ToastContainer"; // components import Layout from "./Layout/Layout"; @@ -34,6 +35,7 @@ export default function App() { + ); diff --git a/src/pages/notifications/Notifications.js b/src/pages/notifications/Notifications.js index f41157e..80ff429 100644 --- a/src/pages/notifications/Notifications.js +++ b/src/pages/notifications/Notifications.js @@ -1,7 +1,6 @@ import React, { useState } from "react"; import { Grid } from "@material-ui/core"; import { toast } from "react-toastify"; -import ToastContainer from "../../components/toast/ToastContainer"; import SyntaxHighlighter from "react-syntax-highlighter"; import { docco } from "react-syntax-highlighter/dist/esm/styles/hljs"; import classnames from "classnames"; @@ -36,7 +35,6 @@ export default function NotificationsPage(props) { <> -