From a8a525e478a0f93f32aa4fff708fa90a8f9f68e1 Mon Sep 17 00:00:00 2001 From: Florian Kleber Date: Mon, 7 Aug 2023 19:59:10 +0000 Subject: [PATCH] feat: Improve the mobile featured products section --- .../molecules/ProductSlider/ProductSlider.tsx | 10 ++++++---- .../FeaturedProductsSection.tsx | 10 ++++++++++ .../HomeTemplate/Riesges/RiesgesBottomSection.tsx | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/components/molecules/ProductSlider/ProductSlider.tsx b/src/components/molecules/ProductSlider/ProductSlider.tsx index 5a4dcf94..1c52a690 100644 --- a/src/components/molecules/ProductSlider/ProductSlider.tsx +++ b/src/components/molecules/ProductSlider/ProductSlider.tsx @@ -1,10 +1,10 @@ -import {Box, Heading} from '@chakra-ui/react' +import {Heading, StackProps} from '@chakra-ui/react' import {ShopifyProduct} from '@snek-at/gatsby-theme-shopify' import {Slider} from '@snek-at/uikit' import {ProductCard} from '../ProductCard' -export interface ProductSliderProps { +export interface ProductSliderProps extends StackProps { products: ShopifyProduct[] heading?: string prefixPath?: string @@ -15,7 +15,8 @@ export const ProductSlider = ({ products, heading, prefixPath, - wholesale + wholesale, + ...stackProps }: ProductSliderProps) => { return ( <> @@ -36,7 +37,8 @@ export const ProductSlider = ({ base: '15rem', sm: 'xs' } - }}> + }} + {...stackProps}> {products.map((product, index) => ( */} +
= () => { return ( - +