diff --git a/components/arcade/prizes.js b/components/arcade/prizes.js index 9f6fbf4c6..a0bbaf575 100644 --- a/components/arcade/prizes.js +++ b/components/arcade/prizes.js @@ -26,6 +26,8 @@ const Prizes = ({ const parsedSubText = subtext?.replace(/\[(.*?)\]\((.*?)\)/g, '$1') + const parsedFullName = fullName?.replace(" ", "-") + return ( {cost} {link ? '🎟️' : cost == 1 ? 'ticket' : 'tickets'} -{/* { - document.getElementById(`${text}-info`).showModal() + document.getElementById(`${parsedFullName}-info`).showModal() }} > 📦 - */} { - document.getElementById(`${text}-info`).close() + document.getElementById(`${parsedFullName}-info`).close() }} /> { const availableItems = items.filter(item => item['Enabled']).map(item => ({ 'Name': item['Name'] || null, + 'Full Name': item['Full Name'] || null, 'Description': item['Description'] || null, + 'Fulfillment Description': item['Fulfillment Description'] || null, 'Cost Hours': item['Cost Hours'] || 0, id: item.id, 'Image URL': item['Image URL'] || null, @@ -88,4 +90,4 @@ export async function getStaticProps({params}) { ]) return { props, revalidate: 10 } -} \ No newline at end of file +}