From 5be22493fad30a993388144b2ca23268a6d569c4 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 9 Oct 2024 17:32:58 +0100 Subject: [PATCH] remove db loaded toast --- .../website/src/components/loaders/database-loader.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/website/src/components/loaders/database-loader.tsx b/projects/website/src/components/loaders/database-loader.tsx index 1f263d9..5a4e0fa 100644 --- a/projects/website/src/components/loaders/database-loader.tsx +++ b/projects/website/src/components/loaders/database-loader.tsx @@ -18,7 +18,6 @@ type DatabaseLoaderProps = { }; export default function DatabaseLoader({ children }: DatabaseLoaderProps) { - const { toast } = useToast(); const [database, setDatabase] = useState(undefined); useEffect(() => { @@ -28,12 +27,8 @@ export default function DatabaseLoader({ children }: DatabaseLoaderProps) { db.on("ready", () => { const loadTime = (performance.now() - before).toFixed(0); console.log(`Loaded database in ${loadTime}ms`); - toast({ - title: "Database loaded", - description: `The database was loaded in ${loadTime}ms.`, - }); }); - }, [toast]); + }, []); return (