ToastContainer on application root
parent
7cc55c59f4
commit
d5dbff6089
|
@ -1,5 +1,6 @@
|
||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
import { HashRouter, Route, Switch, Redirect } from "react-router-dom";
|
import { HashRouter, Route, Switch, Redirect } from "react-router-dom";
|
||||||
|
import ToastContainer from "./toast/ToastContainer";
|
||||||
|
|
||||||
// components
|
// components
|
||||||
import Layout from "./Layout/Layout";
|
import Layout from "./Layout/Layout";
|
||||||
|
@ -34,6 +35,7 @@ export default function App() {
|
||||||
<PublicRoute path="/login" component={Login} />
|
<PublicRoute path="/login" component={Login} />
|
||||||
<Route component={Error} />
|
<Route component={Error} />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
<ToastContainer />
|
||||||
</HashRouter>
|
</HashRouter>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { Grid } from "@material-ui/core";
|
import { Grid } from "@material-ui/core";
|
||||||
import { toast } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
import ToastContainer from "../../components/toast/ToastContainer";
|
|
||||||
import SyntaxHighlighter from "react-syntax-highlighter";
|
import SyntaxHighlighter from "react-syntax-highlighter";
|
||||||
import { docco } from "react-syntax-highlighter/dist/esm/styles/hljs";
|
import { docco } from "react-syntax-highlighter/dist/esm/styles/hljs";
|
||||||
import classnames from "classnames";
|
import classnames from "classnames";
|
||||||
|
@ -36,7 +35,6 @@ export default function NotificationsPage(props) {
|
||||||
<>
|
<>
|
||||||
<PageTitle title="Notifications" />
|
<PageTitle title="Notifications" />
|
||||||
<Grid container spacing={4}>
|
<Grid container spacing={4}>
|
||||||
<ToastContainer />
|
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<Widget disableWidgetMenu>
|
<Widget disableWidgetMenu>
|
||||||
<Grid container item xs={12}>
|
<Grid container item xs={12}>
|
||||||
|
|
Loading…
Reference in New Issue