From d3a45639d234309544fa500f1f6f927dbe1ef683 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 05:55:11 +0000 Subject: [PATCH] completionId: cgen-328d1618bdaa43a8b403296fd641872a cgen-328d1618bdaa43a8b403296fd641872a --- client/pages/Labs.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/pages/Labs.tsx b/client/pages/Labs.tsx index 89f446bb..86cb2c43 100644 --- a/client/pages/Labs.tsx +++ b/client/pages/Labs.tsx @@ -16,11 +16,12 @@ import { import { useNavigate } from "react-router-dom"; import { useEffect, useState, useRef } from "react"; import LoadingScreen from "@/components/LoadingScreen"; -import { aethexToast } from "@/lib/aethex-toast"; +import { useArmToast } from "@/hooks/use-arm-toast"; export default function Labs() { const navigate = useNavigate(); const { theme } = useArmTheme(); + const armToast = useArmToast(); const [isLoading, setIsLoading] = useState(true); const toastShownRef = useRef(false); @@ -28,13 +29,13 @@ export default function Labs() { const timer = setTimeout(() => { setIsLoading(false); if (!toastShownRef.current) { - aethexToast.system("Labs mainframe linked"); + armToast.system("Labs mainframe linked"); toastShownRef.current = true; } }, 900); return () => clearTimeout(timer); - }, []); + }, [armToast]); if (isLoading) { return (