chore: add parrainage
This commit is contained in:
@@ -32,12 +32,13 @@ interface ProductCardProps {
|
||||
media?: Array<{ url: string; type: string }>;
|
||||
};
|
||||
onPress: () => void;
|
||||
categoryColor?: string;
|
||||
}
|
||||
|
||||
export default function ProductCard({ product, onPress }: ProductCardProps) {
|
||||
export default function ProductCard({ product, onPress, categoryColor }: ProductCardProps) {
|
||||
const { colors } = useTheme();
|
||||
const { addToCart } = useCart();
|
||||
const catColor = getCategoryColor(product.category, colors);
|
||||
const catColor = categoryColor ?? getCategoryColor(product.category, colors);
|
||||
const isSoldOut = product.stock <= 0;
|
||||
const firstPrice = product.prices?.[0]?.price ?? null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user