Add toasts

This commit is contained in:
Sacha Weatherstone
2022-10-07 16:11:45 +10:30
parent d23fe966aa
commit 04f5eeaf47
19 changed files with 64 additions and 2 deletions
+6
View File
@@ -1,5 +1,6 @@
import type React from "react";
import { Toaster } from "react-hot-toast";
import { MapProvider } from "react-map-gl";
import { useAppStore } from "@app/core/stores/appStore.js";
@@ -24,6 +25,11 @@ export const App = (): JSX.Element => {
{device && (
<DeviceWrapper device={device}>
<Toaster
toastOptions={{
duration: 2000,
}}
/>
<Sidebar />
<PageNav />
<MapProvider>