From 721c232c14fdc533c4b7e5b900ee07998874316c Mon Sep 17 00:00:00 2001 From: Buyankhuu Tsolmonkhuu Date: Mon, 8 Apr 2024 13:47:26 -0700 Subject: [PATCH 1/2] bugbashFix --- src/app/cart/styles.tsx | 5 +++-- src/app/profileScreen/page.tsx | 1 + src/app/storefront/productButtons.tsx | 4 +--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/cart/styles.tsx b/src/app/cart/styles.tsx index d3364a99..9598dbd4 100644 --- a/src/app/cart/styles.tsx +++ b/src/app/cart/styles.tsx @@ -268,7 +268,7 @@ export const DeliveryContainer = styled.div` display: flex; flex-direction: row; justify-content: space-between; - align-items: center; + align-items: flex-start; `; export const Container = styled.div` @@ -279,7 +279,7 @@ export const Container = styled.div` export const InformationContainer = styled.div` width: 100%; height: 100%; - margin: 40px; + margin-left: 25px; `; export const OutterDiv = styled.div` @@ -339,6 +339,7 @@ export const BackButtonDiv = styled.div` text-align: left; width: 800px; margin-left: 110px; + margin-bottom: 40px; `; export const CheckoutButton = styled.button` diff --git a/src/app/profileScreen/page.tsx b/src/app/profileScreen/page.tsx index e550fa2c..d8bd8add 100644 --- a/src/app/profileScreen/page.tsx +++ b/src/app/profileScreen/page.tsx @@ -114,6 +114,7 @@ function OrderHistorySection(props: { Orders: Order[] }) { const firstOrder = Orders.filter( order => order.order_product_id_array.length !== 0, )[0]; + //handleErrorlater const firstOrderProductIds = firstOrder.order_product_id_array.slice( 0, 3, diff --git a/src/app/storefront/productButtons.tsx b/src/app/storefront/productButtons.tsx index 399839fb..0cc824b7 100644 --- a/src/app/storefront/productButtons.tsx +++ b/src/app/storefront/productButtons.tsx @@ -11,7 +11,6 @@ import { import { Product } from '../../schema/schema'; export default function ProductButtons(props: { - key: number; value: string; setFiltredProducts: (category: Product[]) => void; content: string; @@ -21,7 +20,6 @@ export default function ProductButtons(props: { clickedButton: number; }) { const { - key, value, content, setFiltredProducts, @@ -88,7 +86,7 @@ export default function ProductButtons(props: {