added camelCase

This commit is contained in:
aksinghania 2024-06-22 04:15:41 +05:30
parent 2a85002436
commit 33d70c7118
2 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ const Prizes = ({
onQuantityChange,
index,
hoursBalance,
Stock,
stock,
...props
}) => {
const parsedFulfillmentDesc = fulfillmentDescription?.replace(
@ -64,7 +64,7 @@ const Prizes = ({
alt={text}
/>
</Flex>
{Stock && Stock != null && Stock > 0 && Stock <= 100 && (
{stock && stock != null && stock > 0 && stock <= 100 && (
<Text
sx={{
background: '#CC6CE7',
@ -79,7 +79,7 @@ const Prizes = ({
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>