Maps preparation for prod

This commit is contained in:
Kalle 2022-10-13 21:45:36 +03:00
parent 8470bf228e
commit 6b49d06f57
3 changed files with 8 additions and 8 deletions

View File

@ -20,6 +20,7 @@ import {
BUILDS_PAGE,
calendarEventPage,
CALENDAR_PAGE,
mapsPage,
navIconUrl,
plusSuggestionPage,
userPage,
@ -85,6 +86,12 @@ export default function Index() {
description={t("front:badges.description")}
to={BADGES_PAGE}
/>
<FeatureCard
navItem="maps"
title={t("common:pages.maps")}
description={t("front:maps.description")}
to={mapsPage()}
/>
</div>
</div>
</Main>

View File

@ -77,17 +77,9 @@ const DEFAULT_MAP_POOL = {
export default function MapListPage() {
const data = useLoaderData<typeof loader>();
const user = useUser();
const [searchParams] = useSearchParams();
const { mapPool, handleMapPoolChange } = useSearchParamMapPool();
if (
process.env.NODE_ENV !== "development" &&
user?.discordId !== ADMIN_DISCORD_ID
) {
return <Main>Coming soon :)</Main>;
}
return (
<Main className="maps__container stack lg">
{data.calendarEvent && !searchParams.has("pool") && (

View File

@ -6,6 +6,7 @@
"plus.description": "View Plus Server voting history and more",
"badges.description": "List of all the badges you can earn for your profile",
"analyzer.description": "Find out what your builds actually do",
"maps.description": "Turn pool of maps into a list to play on",
"recentWinners": "Recent winners",
"upcomingEvents": "Upcoming events",
"articleBy": "by {{author}}"