mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 15:17:43 -05:00
Don't show map list makes in prod yet
This commit is contained in:
@@ -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 <Main>Coming soon :)</Main>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="stack md">
|
||||
{stageIds.map((stageId) => (
|
||||
|
||||
Reference in New Issue
Block a user