From 6b49d06f575da882e2a0c2e790a618fff321bd9e Mon Sep 17 00:00:00 2001
From: Kalle <38327916+Sendouc@users.noreply.github.com>
Date: Thu, 13 Oct 2022 21:45:36 +0300
Subject: [PATCH] Maps preparation for prod
---
app/routes/index.tsx | 7 +++++++
app/routes/maps.tsx | 8 --------
public/locales/en/front.json | 1 +
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/app/routes/index.tsx b/app/routes/index.tsx
index 2269387b7..02d3a7cd9 100644
--- a/app/routes/index.tsx
+++ b/app/routes/index.tsx
@@ -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}
/>
+
diff --git a/app/routes/maps.tsx b/app/routes/maps.tsx
index 5caa3221c..42e1f65d9 100644
--- a/app/routes/maps.tsx
+++ b/app/routes/maps.tsx
@@ -77,17 +77,9 @@ const DEFAULT_MAP_POOL = {
export default function MapListPage() {
const data = useLoaderData();
- const user = useUser();
const [searchParams] = useSearchParams();
const { mapPool, handleMapPoolChange } = useSearchParamMapPool();
- if (
- process.env.NODE_ENV !== "development" &&
- user?.discordId !== ADMIN_DISCORD_ID
- ) {
- return Coming soon :);
- }
-
return (
{data.calendarEvent && !searchParams.has("pool") && (
diff --git a/public/locales/en/front.json b/public/locales/en/front.json
index 2eb9e8bf8..9f403cce6 100644
--- a/public/locales/en/front.json
+++ b/public/locales/en/front.json
@@ -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}}"