add toasts for invalid player and invalid server
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 1m18s

This commit is contained in:
Lee
2024-04-17 18:26:53 +01:00
parent 347ee00c18
commit 6b96c3aedb
11 changed files with 537 additions and 42 deletions

View File

@ -1,13 +1,12 @@
import { Fonts } from "@/common/fonts";
import { Metadata, Viewport } from "next";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import "./globals.css";
import Config from "../../config.json";
import Container from "./components/container";
import ThemeProvider from "./components/theme-provider";
import { Toaster } from "./components/ui/toaster";
import { TooltipProvider } from "./components/ui/tooltip";
export const viewport: Viewport = {
@ -51,7 +50,7 @@ export default function RootLayout({
<body>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
<TooltipProvider>
<ToastContainer theme="dark" pauseOnFocusLoss={false} />
<Toaster />
<Container>{children}</Container>
</TooltipProvider>
</ThemeProvider>