mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
parent
7c38e6d56c
commit
56db797a8d
4 changed files with 12 additions and 14 deletions
|
|
@ -65,7 +65,7 @@ const Prizes = ({
|
|||
alt={text}
|
||||
/>
|
||||
</Flex>
|
||||
{stock && stock !== null && stock > 0 && stock <= 100 && (
|
||||
{stock && stock != null && stock > 0 && stock <= 100 && (
|
||||
<Text
|
||||
sx={{
|
||||
background: '#CC6CE7',
|
||||
|
|
@ -161,7 +161,7 @@ const Prizes = ({
|
|||
variant="headline"
|
||||
className="gaegu"
|
||||
>
|
||||
{cost} {link ? '🎟️' : cost === 1 ? 'ticket' : 'tickets'}
|
||||
{cost} {link ? '🎟️' : cost == 1 ? 'ticket' : 'tickets'}
|
||||
</Text>
|
||||
<Text
|
||||
variant="headline"
|
||||
|
|
@ -266,7 +266,7 @@ const Prizes = ({
|
|||
variant="headline"
|
||||
className="gaegu"
|
||||
>
|
||||
{cost} {cost === 1 ? 'ticket' : 'tickets'}
|
||||
{cost} {cost == 1 ? 'ticket' : 'tickets'}
|
||||
</Text>
|
||||
</dialog>
|
||||
</Flex>
|
||||
|
|
|
|||
|
|
@ -95,6 +95,5 @@
|
|||
"eslint": "8.57.0",
|
||||
"eslint-config-next": "14.1.0",
|
||||
"prettier": "^3.2.5"
|
||||
},
|
||||
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,10 +35,10 @@ export default async function handler(req, res) {
|
|||
smallName: record.fields['Name Small Text'],
|
||||
hours: record.fields['Hours'],
|
||||
imageURL: record.fields['Image URL'],
|
||||
formURL: record.fields['Order Form URL'],
|
||||
formURL: record.fields['Order Form URL'],
|
||||
description: record.fields['Description'],
|
||||
flavorText: record?.fields['Flavor text']?.map(recordID => {
|
||||
const flavorRecord = data.flavor.find(f => f.id === recordID)
|
||||
const flavorRecord = data.flavor.find(f => f.id == recordID)
|
||||
const result = {
|
||||
message: flavorRecord.fields["Message"],
|
||||
character: flavorRecord.fields["Character"],
|
||||
|
|
@ -66,5 +66,5 @@ export default async function handler(req, res) {
|
|||
})
|
||||
})
|
||||
|
||||
res.status(200).json({ inventory: inventoryResults, selfClicks })
|
||||
res.status(200).json({inventory: inventoryResults, selfClicks})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -257,10 +257,10 @@ const Powerups = ({
|
|||
variant="headline"
|
||||
className="gaegu"
|
||||
>
|
||||
{cost} {cost === 1 ? 'ticket' : 'tickets'}
|
||||
{cost} {cost == 1 ? 'ticket' : 'tickets'}
|
||||
</Text>
|
||||
{extraTags?.map((tag, i) => {
|
||||
if (tag === 'Limited Supply') {
|
||||
if (tag == 'Limited Supply') {
|
||||
return (
|
||||
<Text
|
||||
key={tag}
|
||||
|
|
@ -383,7 +383,7 @@ const Powerups = ({
|
|||
variant="headline"
|
||||
className="gaegu"
|
||||
>
|
||||
{cost} {cost === 1 ? 'ticket' : 'tickets'}
|
||||
{cost} {cost == 1 ? 'ticket' : 'tickets'}
|
||||
</Text>
|
||||
</dialog>
|
||||
</Flex>
|
||||
|
|
@ -407,7 +407,7 @@ const Intro = ({ title, num, text, img, third, ...props }) => {
|
|||
className="gaegu"
|
||||
sx={{
|
||||
display: 'block',
|
||||
width: third === 'true' ? ['100%', '100%', '100%', '70%'] : '100%'
|
||||
width: third == 'true' ? ['100%', '100%', '100%', '70%'] : '100%'
|
||||
}}
|
||||
>
|
||||
{title}
|
||||
|
|
@ -954,7 +954,7 @@ const Arcade = ({
|
|||
paddingBottom: '20vh'
|
||||
}}
|
||||
>
|
||||
{slack === 'slack' ? (
|
||||
{slack == 'slack' ? (
|
||||
<Announcement
|
||||
copy="You were redirected as we're running a special summer event!"
|
||||
caption="To join our Slack, join ARCADE."
|
||||
|
|
@ -1100,7 +1100,6 @@ const Arcade = ({
|
|||
>
|
||||
<img
|
||||
src="/arcade/prizes.png"
|
||||
alt="Orpheus with a Flipper Zero, a MacBook Air, and other prizes"
|
||||
sx={{
|
||||
zIndex: 10,
|
||||
width: ['80%', '70%', '65%', '80%'],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue