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 ( return (
<div className="flex flex-col items-center gap-6"> <div className="flex flex-col items-center gap-6">
<UgcLinkButton {customUnlocked && (
href="/minigames/eod/custom" <UgcLinkButton
title="UGC Minefields" href="/minigames/eod/custom"
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." title="UGC Minefields"
unlocked={customUnlocked} 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."
className="max-w-5xl" unlocked={customUnlocked}
/> className="max-w-5xl"
/>
)}
{!customUnlocked && ( {!customUnlocked && (
<UnlockNotice <UnlockNotice
title="custom minefields" title="custom minefields"

View file

@ -48,13 +48,15 @@ export function RadioArena({
return ( return (
<div className="flex flex-col items-center gap-6"> <div className="flex flex-col items-center gap-6">
<UgcLinkButton {customUnlocked && (
href="/minigames/radio/custom" <UgcLinkButton
title="UGC Radio Tests" href="/minigames/radio/custom"
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." title="UGC Radio Tests"
unlocked={customUnlocked} 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."
className="max-w-[520px]" unlocked={customUnlocked}
/> className="max-w-[520px]"
/>
)}
{!customUnlocked && ( {!customUnlocked && (
<UnlockNotice <UnlockNotice
title="custom radio tests" title="custom radio tests"