diff --git a/src/components/FillArrow.tsx b/src/components/FillArrow.tsx index 5587b1da..1e63a25a 100644 --- a/src/components/FillArrow.tsx +++ b/src/components/FillArrow.tsx @@ -30,8 +30,6 @@ function useIsInViewport(ref) { } function FillArrow(props: FillArrowProps): JSX.Element { - const { text1, text2, noAnimation } = props; - const ref = useRef(null); const isInViewport = useIsInViewport(ref); @@ -39,7 +37,7 @@ function FillArrow(props: FillArrowProps): JSX.Element { const [animate, setAnimate] = useState(false); useEffect(() => { - if (isInViewport && !animate && !noAnimation) setAnimate(true); + if (isInViewport && !animate && !props.noAnimation) setAnimate(true); }, [isInViewport, animate]); return (