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