From 1cd39c1b5b601a2ad58b663782c76e3df4ac3186 Mon Sep 17 00:00:00 2001 From: Muhammad Fasih Ali Naqvi Date: Fri, 15 Mar 2024 17:27:30 +0800 Subject: [PATCH 1/2] chore: added prop for bottom content --- libs/blocks/src/lib/features/content-slider/index.tsx | 2 ++ libs/blocks/src/lib/features/types.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/libs/blocks/src/lib/features/content-slider/index.tsx b/libs/blocks/src/lib/features/content-slider/index.tsx index e97ef052..a152574a 100644 --- a/libs/blocks/src/lib/features/content-slider/index.tsx +++ b/libs/blocks/src/lib/features/content-slider/index.tsx @@ -8,6 +8,7 @@ const ContentSlider = ({ description, cta: CTA, className, + bottomContent, cardSliderProps, }: ContentSliderProps) => { return ( @@ -33,6 +34,7 @@ const ContentSlider = ({ } {CTA && } + {bottomContent} ); diff --git a/libs/blocks/src/lib/features/types.ts b/libs/blocks/src/lib/features/types.ts index c65e8c93..1c14c7ec 100644 --- a/libs/blocks/src/lib/features/types.ts +++ b/libs/blocks/src/lib/features/types.ts @@ -40,6 +40,7 @@ export interface FeaturesV4Props extends BlockWrapperProps { export interface ContentSliderProps { title?: ReactNode; description?: ReactNode; + bottomContent?: ReactNode; cta?: () => ReactNode; className?: string; cardSliderProps?: CardSliderProps; From 54f11cdcc5e4af61cd3ec71971d1081f4abb466d Mon Sep 17 00:00:00 2001 From: Muhammad Fasih Ali Naqvi Date: Fri, 15 Mar 2024 17:34:04 +0800 Subject: [PATCH 2/2] chore: updated story book --- .../src/lib/features/content-slider/content-slider.stories.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/blocks/src/lib/features/content-slider/content-slider.stories.tsx b/libs/blocks/src/lib/features/content-slider/content-slider.stories.tsx index 7cf56d1a..89954501 100644 --- a/libs/blocks/src/lib/features/content-slider/content-slider.stories.tsx +++ b/libs/blocks/src/lib/features/content-slider/content-slider.stories.tsx @@ -93,5 +93,6 @@ export const Default: Story = { }, ], }, + bottomContent: <>Bottom Content, }, };