From 3ea9e77a7b145d16caf48a5a8ce04759bb8a6833 Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Mon, 27 Oct 2025 13:29:20 +0100 Subject: [PATCH] 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 --- src/components/ui/apple-cards-carousel.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/ui/apple-cards-carousel.tsx b/src/components/ui/apple-cards-carousel.tsx index 541009d..6302c0d 100644 --- a/src/components/ui/apple-cards-carousel.tsx +++ b/src/components/ui/apple-cards-carousel.tsx @@ -59,10 +59,7 @@ export const Carousel = ({ items, initialScroll = 0 }: CarouselProps) => { }; - const isMobile = () => { - return window && window.innerWidth < 768; - }; - + return (