Merge pull request #1254 from aksinghania/arcade-shop-stocks-fixes

Fixed Overlapping issue in arcade shop and recoded to use camelCase
This commit is contained in:
Max Wofford 2024-06-22 01:07:40 +00:00 committed by GitHub
commit 4337c1e545
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -19,7 +19,7 @@ const Prizes = ({
onQuantityChange,
index,
hoursBalance,
Stock,
stock,
...props
}) => {
const parsedFulfillmentDesc = fulfillmentDescription?.replace(
@ -64,22 +64,22 @@ const Prizes = ({
alt={text}
/>
</Flex>
{Stock && Stock != null && Stock > 0 && Stock <= 100 && (
{stock && stock != null && stock > 0 && stock <= 100 && (
<Text
sx={{
background: '#CC6CE7',
px: '20px',
color: '#FFEEC6',
position: 'absolute',
top: '-15px',
left: '-12px',
top: '-22px',
left: '-40px',
zIndex: 1,
transform: `rotate(${ticketRotation}deg)`
}}
variant="headline"
className="gaegu"
>
Only {Stock} left!
Only {stock} left!
</Text>
)}
<Text

View file

@ -94,7 +94,7 @@ export default function ShopComponent({
id={item.id}
onQuantityChange={(id, q) => handleQuantityChange(item.id, q)} // Pass handler to update quantity
hoursBalance={hoursBalance}
Stock={item['Stock']}
stock={item['Stock']}
/>
))}
</Grid>