mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-12 13:49:22 -05:00
Maps preparation for prod
This commit is contained in:
parent
8470bf228e
commit
6b49d06f57
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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") && (
|
||||
|
|
|
|||
|
|
@ -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}}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user