Hide items from client (#1231)

* update cards & add modals

* filter items sent to client

* fix faq typo

---------

Co-authored-by: Dillon Barnes <dillonb07dev@gnmail.com>
This commit is contained in:
Dillon Barnes 2024-06-16 14:10:53 +01:00 committed by GitHub
parent a34a7d3924
commit 07010143b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -899,7 +899,6 @@ function thinkingWords() {
const Arcade = ({
stickers = [],
inventory = [],
carousel = [],
highlightedItems = []
}) => {
@ -1802,7 +1801,7 @@ const Arcade = ({
>
<FAQ
question="Who is eligible?"
answer="You need to be a high schooler (or younger). You just need a GitHub accound & a Slack account to participate. Different prizes have different country restrictions."
answer="You need to be a high schooler (or younger). You just need a GitHub account & a Slack account to participate. Different prizes have different country restrictions."
/>
<FAQ
question="What types of projects count?"
@ -1814,7 +1813,7 @@ const Arcade = ({
/>
<FAQ
question="How much does it cost?"
answer="100% free all the prizes are donated to us or paid for by us! Some shipments may have customs charges that we can't cover depending on your country."
answer="100% free all the prizes are donated to us or paid for by us! Some shipments may have customs charges that we can't cover depending on your country."
/>
<FAQ
question="I need help!"
@ -1903,6 +1902,7 @@ export async function getStaticProps() {
.filter(sticker => sticker !== 'hero.jpg')
const items = await shopParts()
const carousel = items
.filter(item => item['Enabled Carousel'])
.map(record => ({
@ -1918,7 +1918,6 @@ export async function getStaticProps() {
return {
props: {
stickers,
inventory: items,
highlightedItems,
carousel
}