refactor: remove unused isMobile function

- Deleted unused isMobile() function that was checking window width
- Cleaned up code by removing redundant window width check that wasn't being utilized in the component
This commit is contained in:
2025-10-27 13:29:20 +01:00
parent a52e838d17
commit 3ea9e77a7b

View File

@@ -59,9 +59,6 @@ export const Carousel = ({ items, initialScroll = 0 }: CarouselProps) => {
};
const isMobile = () => {
return window && window.innerWidth < 768;
};
return (
<div className="relative w-full">