1
0
Fork 0

feat(minigames): hide UGC entry buttons until custom content unlocks

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Jason Fraley 2026-09-09 00:03:29 -04:00
parent 135a7fd5ae
commit 911fc31354
2 changed files with 18 additions and 14 deletions

View file

@ -43,13 +43,15 @@ export function EodArena({
return (
<div className="flex flex-col items-center gap-6">
<UgcLinkButton
href="/minigames/eod/custom"
title="UGC Minefields"
subtitle="Play, compete for, and create custom minefields you can share with other unit members! You can even earn XP for playing maps, and as an author, every payout on your map nets you some XP, too."
unlocked={customUnlocked}
className="max-w-5xl"
/>
{customUnlocked && (
<UgcLinkButton
href="/minigames/eod/custom"
title="UGC Minefields"
subtitle="Play, compete for, and create custom minefields you can share with other unit members! You can even earn XP for playing maps, and as an author, every payout on your map nets you some XP, too."
unlocked={customUnlocked}
className="max-w-5xl"
/>
)}
{!customUnlocked && (
<UnlockNotice
title="custom minefields"

View file

@ -48,13 +48,15 @@ export function RadioArena({
return (
<div className="flex flex-col items-center gap-6">
<UgcLinkButton
href="/minigames/radio/custom"
title="UGC Radio Tests"
subtitle="Play and create custom radio tests you can share with other unit members! Runs are unranked, so it is a great place to practice before an official transmission."
unlocked={customUnlocked}
className="max-w-[520px]"
/>
{customUnlocked && (
<UgcLinkButton
href="/minigames/radio/custom"
title="UGC Radio Tests"
subtitle="Play and create custom radio tests you can share with other unit members! Runs are unranked, so it is a great place to practice before an official transmission."
unlocked={customUnlocked}
className="max-w-[520px]"
/>
)}
{!customUnlocked && (
<UnlockNotice
title="custom radio tests"