From 33d70c711804d9d40f9a4f60cc67cf48efba20c9 Mon Sep 17 00:00:00 2001 From: aksinghania Date: Sat, 22 Jun 2024 04:15:41 +0530 Subject: [PATCH 1/2] added camelCase --- components/arcade/prizes.js | 6 +++--- components/arcade/shop-component.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/arcade/prizes.js b/components/arcade/prizes.js index ea7ae30b..fc3c6892 100644 --- a/components/arcade/prizes.js +++ b/components/arcade/prizes.js @@ -19,7 +19,7 @@ const Prizes = ({ onQuantityChange, index, hoursBalance, - Stock, + stock, ...props }) => { const parsedFulfillmentDesc = fulfillmentDescription?.replace( @@ -64,7 +64,7 @@ const Prizes = ({ alt={text} /> - {Stock && Stock != null && Stock > 0 && Stock <= 100 && ( + {stock && stock != null && stock > 0 && stock <= 100 && ( - Only {Stock} left! + Only {stock} left! )} handleQuantityChange(item.id, q)} // Pass handler to update quantity hoursBalance={hoursBalance} - Stock={item['Stock']} + stock={item['Stock']} /> ))} From f4b38220fee40cd342af879e258659f78a9a2cf9 Mon Sep 17 00:00:00 2001 From: aksinghania Date: Sat, 22 Jun 2024 04:18:38 +0530 Subject: [PATCH 2/2] solved overlapping issue --- components/arcade/prizes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/arcade/prizes.js b/components/arcade/prizes.js index fc3c6892..3b7a428c 100644 --- a/components/arcade/prizes.js +++ b/components/arcade/prizes.js @@ -71,8 +71,8 @@ const Prizes = ({ px: '20px', color: '#FFEEC6', position: 'absolute', - top: '-15px', - left: '-12px', + top: '-22px', + left: '-40px', zIndex: 1, transform: `rotate(${ticketRotation}deg)` }}