2 Commits

2 changed files with 6 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ interface PricingCardOneProps {
textBoxButtonContainerClassName?: string;
textBoxButtonClassName?: string;
textBoxButtonTextClassName?: string;
backgroundImage?: string;
}
interface PricingCardItemProps {
@@ -142,6 +143,7 @@ const PricingCardOne = ({
textBoxButtonContainerClassName = "",
textBoxButtonClassName = "",
textBoxButtonTextClassName = "",
backgroundImage = "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920&q=80"
}: PricingCardOneProps) => {
const theme = useTheme();
const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle);
@@ -154,6 +156,7 @@ const PricingCardOne = ({
uniformGridCustomHeightClasses={uniformGridCustomHeightClasses}
animationType={animationType}
supports3DAnimation={true}
backgroundImage={backgroundImage}
title={title}
titleSegments={titleSegments}

View File

@@ -53,6 +53,7 @@ interface ProductCardFourProps {
textBoxButtonContainerClassName?: string;
textBoxButtonClassName?: string;
textBoxButtonTextClassName?: string;
backgroundImage?: string;
}
interface ProductCardItemProps {
@@ -150,6 +151,7 @@ const ProductCardFour = ({
textBoxButtonContainerClassName = "",
textBoxButtonClassName = "",
textBoxButtonTextClassName = "",
backgroundImage = "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920&q=80",
}: ProductCardFourProps) => {
const theme = useTheme();
const { products: fetchedProducts, isLoading } = useProducts();
@@ -193,7 +195,7 @@ const ProductCardFour = ({
buttons={buttons}
textboxLayout={textboxLayout}
useInvertedBackground={useInvertedBackground}
className={className}
className={cls(className, "bg-cover bg-center", { backgroundImage: `url(${backgroundImage})` })}
containerClassName={containerClassName}
gridClassName={gridClassName}
carouselClassName={carouselClassName}