()
| 73 | const [intervalId, setIntervalId] = useState(null); |
| 74 | useEffect(() => { |
| 75 | const handleResize = () => { |
| 76 | const screenWidth = window.innerWidth; |
| 77 | if (screenWidth <= 700) { |
| 78 | setNumVisible(1); |
| 79 | } else if (screenWidth >= 700 && screenWidth < 1024) { |
| 80 | setNumVisible(2); |
| 81 | } else if (screenWidth >= 1024 && screenWidth < 1300) { |
| 82 | setNumVisible(2); |
| 83 | } else { |
| 84 | setNumVisible(3); |
| 85 | } |
| 86 | }; |
| 87 | |
| 88 | const startAutoCarousel = () => { |
| 89 | const id = setInterval(() => { |
nothing calls this directly
no outgoing calls
no test coverage detected