mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
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:
commit
4337c1e545
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue