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 { useNavigate } from "react-router-dom";
|
||||||
import { useEffect, useState, useRef } from "react";
|
import { useEffect, useState, useRef } from "react";
|
||||||
import LoadingScreen from "@/components/LoadingScreen";
|
import LoadingScreen from "@/components/LoadingScreen";
|
||||||
import { aethexToast } from "@/lib/aethex-toast";
|
import { useArmToast } from "@/hooks/use-arm-toast";
|
||||||
|
|
||||||
export default function DevLink() {
|
export default function DevLink() {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
const armToast = useArmToast();
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
const toastShownRef = useRef(false);
|
const toastShownRef = useRef(false);
|
||||||
|
|
||||||
|
|
@ -17,13 +18,13 @@ export default function DevLink() {
|
||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
if (!toastShownRef.current) {
|
if (!toastShownRef.current) {
|
||||||
aethexToast.system("Dev-Link platform loaded");
|
armToast.system("Dev-Link platform loaded");
|
||||||
toastShownRef.current = true;
|
toastShownRef.current = true;
|
||||||
}
|
}
|
||||||
}, 900);
|
}, 900);
|
||||||
|
|
||||||
return () => clearTimeout(timer);
|
return () => clearTimeout(timer);
|
||||||
}, []);
|
}, [armToast]);
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue