diff --git a/@types/index.d.ts b/@types/index.d.ts index 6d983ab9a..4af398894 100644 --- a/@types/index.d.ts +++ b/@types/index.d.ts @@ -181,9 +181,20 @@ export interface Data { updatedAt: string; products: Product; } -export interface ShopData { - products: Product; - data?: Data; +interface PaginationData { + totalItems: number; + totalPages: number; + currentPage: number; + pageSize: number; +} +interface ShopData { + code: string; + message: string; + data: ShopResponse; +} +export interface ShopResponse { + shop: Data; + pagination: PaginationData; } export interface SEOProps { diff --git a/components/Navbars/TopBar.tsx b/components/Navbars/TopBar.tsx index b95bb24d2..b0d65b424 100644 --- a/components/Navbars/TopBar.tsx +++ b/components/Navbars/TopBar.tsx @@ -544,14 +544,17 @@ function TopBar(props: { activePage: string; showDashBorad: boolean }) { height={24} alt="Cart Icon" /> - + + + +
{globalAuth?.user?.firstName} {globalAuth?.user?.lastName}
- - + {/*₦{product.price.toLocaleString()}
++ ₦{product.discount_price.toLocaleString()} +
{shopName && (
diff --git a/modules/shop/component/productPage/ShopProduct/ShopProductList.tsx b/modules/shop/component/productPage/ShopProduct/ShopProductList.tsx
index 55f1258f9..d95bc41c8 100644
--- a/modules/shop/component/productPage/ShopProduct/ShopProductList.tsx
+++ b/modules/shop/component/productPage/ShopProduct/ShopProductList.tsx
@@ -13,11 +13,15 @@ interface ShopProductListProps {
const ShopProductList: React.FC No products available.