Skip to content

Commit

Permalink
feat: add NotificationProvider to _app.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
asharonbaltazar committed Dec 6, 2022
1 parent 6ed5b9e commit 389bf0b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { config } from "@fortawesome/fontawesome-svg-core";

import { initPostHog } from "~/components/analytics/posthog";
import Layout from "~/components/basic/layout";
import NotificationProvider from "~/components/context/NotificationProvider";
import RouteGuard from "~/components/RouteGuard";
import { publicPaths } from "~/const";
import { ENV } from "~/utilities/config";
Expand Down Expand Up @@ -46,9 +47,11 @@ const App = ({ Component, pageProps, ...appProps }) => {

return (
<RouteGuard>
<Layout>
<Component {...pageProps} />
</Layout>
<NotificationProvider>
<Layout>
<Component {...pageProps} />
</Layout>
</NotificationProvider>
</RouteGuard>
);
};
Expand Down

0 comments on commit 389bf0b

Please sign in to comment.