diff --git a/app/components/explore/MainSection.tsx b/app/components/explore/MainSection.tsx index 8cd9623..e3c1008 100644 --- a/app/components/explore/MainSection.tsx +++ b/app/components/explore/MainSection.tsx @@ -104,6 +104,9 @@ const MainSection = () => { basePrice: product.basePrice ? parseInt(product.basePrice) : undefined, + sellerName: product.sellerName, + sellerLogo: product.sellerLogo, + sellerUsername: product.sellerUsername, }; })} fetchNextPage={fetchNextPage} diff --git a/app/routes/search.$query.tsx b/app/routes/search.$query.tsx index b2b57d8..8051b38 100644 --- a/app/routes/search.$query.tsx +++ b/app/routes/search.$query.tsx @@ -66,6 +66,11 @@ export default function Search() { id: product.id, title: product.title, images: product.imageUrls || [], + discountPercent: product.discountPercent || 0, + discountPrice: + product.discountPrice || product.price || 0, + basePrice: product.basePrice || product.price || 0, + sellerName: product.sellerName, }; }) || [] } diff --git a/src/api/types/models/index.ts b/src/api/types/models/index.ts index 220b9c1..a5ec8f7 100644 --- a/src/api/types/models/index.ts +++ b/src/api/types/models/index.ts @@ -3310,13 +3310,31 @@ export interface Product { */ category?: string | null; /** - * + * + * @type {string} + * @memberof Product + */ + readonly sellerName?: string; + /** + * + * @type {string} + * @memberof Product + */ + readonly sellerUsername?: string; + /** + * + * @type {string} + * @memberof Product + */ + readonly sellerLogo?: string | null; + /** + * * @type {boolean} * @memberof Product */ readonly isActive?: boolean; /** - * + * * @type {boolean} * @memberof Product */