From eb1a21828aa139686df6fe1c853fca9a737f5fe2 Mon Sep 17 00:00:00 2001 From: ImAlpha Date: Thu, 21 Nov 2024 22:43:14 -0800 Subject: [PATCH] working api with external url --- frontend/src/app/products/page.tsx | 2 +- .../src/components/ui/MenuCard/MenuCard.tsx | 45 ++++--------------- 2 files changed, 9 insertions(+), 38 deletions(-) diff --git a/frontend/src/app/products/page.tsx b/frontend/src/app/products/page.tsx index 1ffff8c..5d551f7 100644 --- a/frontend/src/app/products/page.tsx +++ b/frontend/src/app/products/page.tsx @@ -41,7 +41,7 @@ const Products = () => { return ( -
+
{/*

Product Categories

diff --git a/frontend/src/components/ui/MenuCard/MenuCard.tsx b/frontend/src/components/ui/MenuCard/MenuCard.tsx index 3884071..1bb5acd 100644 --- a/frontend/src/components/ui/MenuCard/MenuCard.tsx +++ b/frontend/src/components/ui/MenuCard/MenuCard.tsx @@ -25,14 +25,14 @@ const MenuCard = ({ Menu }: any) => { const router = useRouter(); return ( -
+
{Menu.map((menu_item: any) => { return ( -
+
{/* Flask */} {/* { />
-
+
{/* title and description of item */} -
+
{/* title and photo */}

- {menu_item.description} + {menu_item.title}

-
- {menu_item.inStock === "yes" ? ( - In Stock! - ) : ( - Out of Stock - )} - {/* Check if item is a favorite */} - {/* {menu_item.favorite === "yes" ? ( - jefe's star - ) : ( -
- )} */} +
+ ${menu_item.price}
- {/* description text */} - {/*
-

- {menu_item.description} -

-
*/}