diff --git a/src/app/components/Examples.tsx b/src/app/components/Examples.tsx index d655510..803ad3e 100644 --- a/src/app/components/Examples.tsx +++ b/src/app/components/Examples.tsx @@ -20,28 +20,6 @@ export default function Examples(props: { dict: Record; lang: st fetchData(); }, []); - const [progress, setProgress] = useState(0); - - const timer = useRef(); - useEffect(() => { - if (previewInfo.preview) { - setProgress(0); - timer.current = setInterval(() => { - if (progress === 100) { - clearInterval(timer.current); - return; - } - setProgress((prevProgress) => { - if (prevProgress >= 90) { - clearInterval(timer.current); - return 90; - } - return prevProgress + 10; - }); - }, 1000); - } - }, [previewInfo.preview]); - return ( <>
@@ -92,8 +70,7 @@ export default function Examples(props: { dict: Record; lang: st onClick={(e) => { e.stopPropagation(); }} - > - {progress < 90 &&
{progress}%
} + >1