diff --git a/src/layout/index.tsx b/src/layout/index.tsx index 41b687a..612c9c4 100644 --- a/src/layout/index.tsx +++ b/src/layout/index.tsx @@ -6,6 +6,7 @@ import { Helmet } from "react-helmet-async"; import { useEffect } from "react"; import { useDispatch } from "react-redux"; import { setConfigId } from "../redux/slices/configId"; +import toast from "react-hot-toast"; const Layout = () => { const { configs } = useParams<{ configs: string }>(); @@ -23,8 +24,48 @@ const Layout = () => { console.error("Element with ID 'configs' not found"); } }, 100); // Scroll to 100% of the page height - }, [configs,dispatch]); + }, [configs, dispatch]); + useEffect(() => { + toast.custom( + (t) => ( +