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:
@@ -59,9 +59,6 @@ export const Carousel = ({ items, initialScroll = 0 }: CarouselProps) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const isMobile = () => {
|
|
||||||
return window && window.innerWidth < 768;
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative w-full">
|
<div className="relative w-full">
|
||||||
|
|||||||
Reference in New Issue
Block a user