Update StateLabel.jsx

This commit is contained in:
plebeius.eth
2023-06-08 22:27:34 +02:00
parent 394c8c5825
commit 122e5a6262
+1 -1
View File
@@ -9,7 +9,7 @@ const StateLabel = ({ commentIndex, className }) => {
const [isLoading, setIsLoading] = useState(true); const [isLoading, setIsLoading] = useState(true);
useEffect(() => { useEffect(() => {
const timer = setTimeout(() => setIsLoading(false), 5000); const timer = setTimeout(() => setIsLoading(false), 2000);
return () => clearTimeout(timer); return () => clearTimeout(timer);
}, []); }, []);