diff --git a/components/achievements/infiniteSlider.jsx b/components/achievements/infiniteSlider.jsx index ecd753a..5c86e94 100644 --- a/components/achievements/infiniteSlider.jsx +++ b/components/achievements/infiniteSlider.jsx @@ -11,20 +11,25 @@ const InfiniteSlider = ({ data, direction }) => { }, 1000); return () => clearTimeout(delay); }, []); + + const moveRight = direction === "right" || direction === true; + return ( -
+
{showSlider && ( - + {data.map((company, index) => ( -
- - {company.alt} - -
+ + {company.alt + ))}
)} @@ -32,4 +37,5 @@ const InfiniteSlider = ({ data, direction }) => { ); }; + export default InfiniteSlider;