completionId: cgen-0a019a62309c4b2ca6903003cea499d8
cgen-0a019a62309c4b2ca6903003cea499d8
This commit is contained in:
parent
476cd0d390
commit
822c1e717d
1 changed files with 4 additions and 3 deletions
|
|
@ -6,10 +6,11 @@ import { Users, Briefcase, Star, Zap } from "lucide-react";
|
|||
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 DevLink() {
|
||||
const navigate = useNavigate();
|
||||
const armToast = useArmToast();
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const toastShownRef = useRef(false);
|
||||
|
||||
|
|
@ -17,13 +18,13 @@ export default function DevLink() {
|
|||
const timer = setTimeout(() => {
|
||||
setIsLoading(false);
|
||||
if (!toastShownRef.current) {
|
||||
aethexToast.system("Dev-Link platform loaded");
|
||||
armToast.system("Dev-Link platform loaded");
|
||||
toastShownRef.current = true;
|
||||
}
|
||||
}, 900);
|
||||
|
||||
return () => clearTimeout(timer);
|
||||
}, []);
|
||||
}, [armToast]);
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue