Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c56446fe94 |
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user