From 9de617fafba3929ee8d0e9c104139d1cb10688a5 Mon Sep 17 00:00:00 2001 From: Chef Penguin Date: Mon, 4 Nov 2024 11:42:47 +0530 Subject: [PATCH] chore: common ad slides in mobile --- .../src/components/AdPanel/CardLayouts.tsx | 41 +++++++++++-------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/apps/web/src/components/AdPanel/CardLayouts.tsx b/apps/web/src/components/AdPanel/CardLayouts.tsx index 18c649633b4b9..cc2eb31828a9a 100644 --- a/apps/web/src/components/AdPanel/CardLayouts.tsx +++ b/apps/web/src/components/AdPanel/CardLayouts.tsx @@ -4,7 +4,6 @@ import styled from 'styled-components' import { Autoplay, EffectFade, Pagination } from 'swiper/modules' import { SwiperSlide } from 'swiper/react' import { StyledSwiper } from './CarrouselWithSlider' -import { TitleContentAd } from './Variations/TitleContentAd' import { AdList } from './config' const FloatingContainer = styled(Box)` @@ -21,6 +20,27 @@ const MobileContainer = styled(Box)` align-items: center; ` +const AdSlides = () => { + return ( + + {AdList.map((ad) => ( + {ad.component} + ))} + + ) +} + /** * Renders floating Ad banners on desktop */ @@ -31,22 +51,7 @@ export const DesktopCard = () => { return portalRoot && isDesktop ? createPortal( - - {AdList.map((ad) => ( - {ad.component} - ))} - + , portalRoot, ) @@ -60,7 +65,7 @@ export const MobileCard = () => { const { isDesktop } = useMatchBreakpoints() return !isDesktop ? ( - + ) : null }