From 5d134ba05da1502763bb6976fb26ac933d263f99 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sat, 13 Dec 2025 16:44:46 +0330 Subject: [PATCH] theme value --- src/pages/products/ProductVariant.tsx | 3 ++- src/pages/products/types/Types.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/products/ProductVariant.tsx b/src/pages/products/ProductVariant.tsx index 463ee22..70a25a4 100644 --- a/src/pages/products/ProductVariant.tsx +++ b/src/pages/products/ProductVariant.tsx @@ -45,7 +45,8 @@ const ProductVariant: FC = () => {
- {variant.title_fa} + {variant.title_fa + ' '} + ( {variant.themeValue?.name} )
{variant.title_en} diff --git a/src/pages/products/types/Types.ts b/src/pages/products/types/Types.ts index 6e0fe87..7cb1d7d 100644 --- a/src/pages/products/types/Types.ts +++ b/src/pages/products/types/Types.ts @@ -244,8 +244,11 @@ export type ProductVariantDetailType = { saleFormat: SaleFormatType; themeValue?: { _id: string; + theme: { + title: string; + }; name: string; - value: number; + value: string; }; size?: SizeType; color?: ColorType;