Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bc64d0e67e |
@@ -57,6 +57,7 @@ interface ProductCardTwoProps {
|
||||
textBoxButtonContainerClassName?: string;
|
||||
textBoxButtonClassName?: string;
|
||||
textBoxButtonTextClassName?: string;
|
||||
backgroundImage?: string;
|
||||
}
|
||||
|
||||
interface ProductCardItemProps {
|
||||
@@ -174,6 +175,7 @@ const ProductCardTwo = ({
|
||||
textBoxButtonContainerClassName = "",
|
||||
textBoxButtonClassName = "",
|
||||
textBoxButtonTextClassName = "",
|
||||
backgroundImage = "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920&q=80",
|
||||
}: ProductCardTwoProps) => {
|
||||
const theme = useTheme();
|
||||
const { products: fetchedProducts, isLoading } = useProducts();
|
||||
@@ -222,7 +224,7 @@ const ProductCardTwo = ({
|
||||
tagIcon={tagIcon}
|
||||
buttons={buttons}
|
||||
textboxLayout={textboxLayout}
|
||||
className={className}
|
||||
className={cls(className, "bg-cover bg-center", { [backgroundImage]: backgroundImage })}
|
||||
containerClassName={containerClassName}
|
||||
gridClassName={gridClassName}
|
||||
carouselClassName={carouselClassName}
|
||||
|
||||
Reference in New Issue
Block a user