addded toast badge function

Currently, after every Event, you have to reload the page manually!!!
This commit is contained in:
2025-07-24 15:21:57 +02:00
parent b69b446e3d
commit 6da6693c17
4 changed files with 24 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ import React from "react";
import Header from "../components/Header";
import Cookies from "js-cookie";
import Sidebar from "../components/Sidebar";
import { ToastContainer } from "react-toastify";
type LayoutProps = {
children: React.ReactNode;
@@ -13,6 +14,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
return (
<div className="flex flex-col min-h-screen bg-gradient-to-br from-blue-50 via-blue-100 to-blue-200 dark:from-gray-900 dark:via-gray-950 dark:to-gray-900">
<Header />
<ToastContainer />
<div className="flex flex-1">
{isLoggedIn && (
<>