chore: update
This commit is contained in:
@@ -14,7 +14,6 @@ import { Ionicons } from "@expo/vector-icons";
|
||||
import { Video, ResizeMode } from "expo-av";
|
||||
import { spacing, borderRadius, fontSize, fontWeight } from "../theme";
|
||||
import { useTheme } from "../context/ThemeContext";
|
||||
import { getCategoryColor } from "../utils/constants";
|
||||
import { API_BASE_URL } from "../api/client";
|
||||
import { useCart } from "../context/CartContext";
|
||||
|
||||
@@ -38,7 +37,7 @@ interface ProductCardProps {
|
||||
export default function ProductCard({ product, onPress, categoryColor }: ProductCardProps) {
|
||||
const { colors } = useTheme();
|
||||
const { addToCart } = useCart();
|
||||
const catColor = categoryColor ?? getCategoryColor(product.category, colors);
|
||||
const catColor = categoryColor ?? colors.accent;
|
||||
const isSoldOut = product.stock <= 0;
|
||||
const firstPrice = product.prices?.[0]?.price ?? null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user