diff --git a/app/routes/maps.tsx b/app/routes/maps.tsx index 84c25c395..f66e0b9f5 100644 --- a/app/routes/maps.tsx +++ b/app/routes/maps.tsx @@ -13,6 +13,8 @@ import { mapPoolToSerializedString, serializedStringToMapPool, } from "~/modules/map-pool-serializer"; +import { useUser } from "~/modules/auth"; +import { ADMIN_DISCORD_ID } from "~/constants"; export const links: LinksFunction = () => { return [{ rel: "stylesheet", href: styles }]; @@ -87,8 +89,16 @@ function MapPoolSelector({ mapPool: MapPool; handleMapPoolChange: (args: { mode: ModeShort; stageId: StageId }) => void; }) { + const user = useUser(); const { t } = useTranslation(["game-misc"]); + if ( + process.env.NODE_ENV !== "development" && + user?.discordId !== ADMIN_DISCORD_ID + ) { + return
Coming soon :)
; + } + return (
{stageIds.map((stageId) => (