Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #396 from deriv-com/pr-3003-add-bottom-content-prop
Browse files Browse the repository at this point in the history
Fasih/DPROD-3003/Add bottom content prop
  • Loading branch information
habib-deriv authored Mar 18, 2024
2 parents a4fee56 + 54f11cd commit 394356a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ export const Default: Story = {
},
],
},
bottomContent: <>Bottom Content</>,
},
};
2 changes: 2 additions & 0 deletions libs/blocks/src/lib/features/content-slider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const ContentSlider = <T extends CardVariantType>({
description,
cta: CTA,
className,
bottomContent,
cardSliderProps,
}: ContentSliderProps<T>) => {
return (
Expand All @@ -33,6 +34,7 @@ const ContentSlider = <T extends CardVariantType>({
<CardSlider {...cardSliderProps} />
}
{CTA && <CTA />}
{bottomContent}
</FluidContainer>
</Section>
);
Expand Down
1 change: 1 addition & 0 deletions libs/blocks/src/lib/features/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface FeaturesV4Props extends BlockWrapperProps {
export interface ContentSliderProps<T extends CardVariantType> {
title?: ReactNode;
description?: ReactNode;
bottomContent?: ReactNode;
cta?: () => ReactNode;
className?: string;
cardSliderProps?: CardSliderProps<T>;
Expand Down

0 comments on commit 394356a

Please sign in to comment.