Skip to content

Commit

Permalink
Include item small name on shop
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Jun 19, 2024
1 parent ce54d80 commit 42dfb78
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions components/arcade/prizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const Prizes = ({
subtext,
fulfillmentDescription,
fullName,
name,
smallName,
cost,
polaroidRotation,
ticketRotation,
Expand Down Expand Up @@ -66,11 +68,11 @@ const Prizes = ({
variant="headline"
sx={{ color: '#FFEEC6', mb: 0 }}
>
{text}
{name}
</Text>
<Text variant="subtitle" sx={{ color: '#FFEEC6' }}>
{smallName}
</Text>
{/* <Text className="" variant="subtitle" sx={{ color: '#FFEEC6' }}>
{text}
</Text> */}
<Balancer>
<Text
as="p"
Expand Down
3 changes: 2 additions & 1 deletion components/arcade/shop-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export default function ShopComponent({
.map((item) => (
<Prizes
img={item['Image URL']}
text={item['Name']}
name={item['Name']}
smallName={item['Small Name']}
subtext={item['Description']}
cost={item['Cost Hours']}
quantity={item['Max Order Quantity']}
Expand Down
1 change: 1 addition & 0 deletions pages/arcade/[userAirtableID]/shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export async function getStaticProps({params}) {
shopParts().then(items => {
const availableItems = items.filter(item => item['Enabled']).map(item => ({
'Name': item['Name'] || null,
'Small Name': item['Small Name'] || null,
'Full Name': item['Full Name'] || null,
'Description': item['Description'] || null,
'Fulfillment Description': item['Fulfillment Description'] || null,
Expand Down

0 comments on commit 42dfb78

Please sign in to comment.