From 476cd0d390fb610fe0ab8cf9ca624b9f0425eeeb Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 05:55:47 +0000 Subject: [PATCH] completionId: cgen-d71b8bd4ae9349989ba06645cb602a3e cgen-d71b8bd4ae9349989ba06645cb602a3e --- client/pages/Staff.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/pages/Staff.tsx b/client/pages/Staff.tsx index cf8e9a8c..3a74a728 100644 --- a/client/pages/Staff.tsx +++ b/client/pages/Staff.tsx @@ -20,11 +20,12 @@ import { useNavigate } from "react-router-dom"; import { useEffect, useState, useRef } from "react"; import { useAuth } from "@/contexts/AuthContext"; import LoadingScreen from "@/components/LoadingScreen"; -import { aethexToast } from "@/lib/aethex-toast"; +import { useArmToast } from "@/hooks/use-arm-toast"; export default function Staff() { const navigate = useNavigate(); const { user, loading } = useAuth(); + const armToast = useArmToast(); const [isLoading, setIsLoading] = useState(true); const toastShownRef = useRef(false); @@ -40,13 +41,13 @@ export default function Staff() { const timer = setTimeout(() => { setIsLoading(false); if (!toastShownRef.current) { - aethexToast.system("Staff operations portal initialized"); + armToast.system("Staff operations portal initialized"); toastShownRef.current = true; } }, 900); return () => clearTimeout(timer); - }, []); + }, [armToast]); // Show loading screen while checking authentication if (isLoading || loading) {