feat: add Toaster in main layout

This commit is contained in:
p-sw 2024-06-01 07:49:12 +09:00
parent 70f8f43209
commit b1feac0ce2

View File

@ -2,6 +2,7 @@ import { useState } from "react";
import { Link, Outlet, useLocation } from "react-router-dom"; import { Link, Outlet, useLocation } from "react-router-dom";
import { Button } from "../components/Button"; import { Button } from "../components/Button";
import RouteObject from "./RouteObject"; import RouteObject from "./RouteObject";
import { Toaster } from "@components/Toast";
type Theme = "light" | "dark"; type Theme = "light" | "dark";
@ -87,6 +88,7 @@ function TopNav() {
function MainLayout() { function MainLayout() {
return ( return (
<> <>
<Toaster />
<TopNav /> <TopNav />
<Outlet /> <Outlet />
</> </>