From b12080367cc0ecfae3fb3c247b75199270d786ce Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 28 Mar 2026 17:22:31 +0200 Subject: [PATCH] Remove redundant link to empty page --- app/components/layout/Footer.module.css | 5 +++++ app/components/layout/Footer.tsx | 8 ++++++-- app/features/info/routes/privacy-policy.tsx | 18 ------------------ app/routes.ts | 1 - app/utils/urls.ts | 1 - locales/da/common.json | 1 - locales/de/common.json | 1 - locales/en/common.json | 1 - locales/es-ES/common.json | 1 - locales/es-US/common.json | 1 - locales/fr-CA/common.json | 1 - locales/fr-EU/common.json | 1 - locales/he/common.json | 1 - locales/it/common.json | 1 - locales/ja/common.json | 1 - locales/ko/common.json | 1 - locales/nl/common.json | 1 - locales/pl/common.json | 1 - locales/pt-BR/common.json | 1 - locales/ru/common.json | 1 - locales/zh/common.json | 1 - 21 files changed, 11 insertions(+), 38 deletions(-) delete mode 100644 app/features/info/routes/privacy-policy.tsx diff --git a/app/components/layout/Footer.module.css b/app/components/layout/Footer.module.css index 2bb369675..6f868ee28 100644 --- a/app/components/layout/Footer.module.css +++ b/app/components/layout/Footer.module.css @@ -12,6 +12,11 @@ display: flex; justify-content: space-evenly; font-size: var(--font-2xs); + + & > * { + flex: 1; + text-align: center; + } } .socials { diff --git a/app/components/layout/Footer.tsx b/app/components/layout/Footer.tsx index bfcca2bca..52d45c399 100644 --- a/app/components/layout/Footer.tsx +++ b/app/components/layout/Footer.tsx @@ -1,12 +1,12 @@ import { useTranslation } from "react-i18next"; import { Link } from "react-router"; +import { useUser } from "~/features/auth/core/user"; import { usePatrons } from "~/hooks/swr"; import { API_PAGE, CONTRIBUTIONS_PAGE, FAQ_PAGE, NINTENDO_COMMUNITY_TOURNAMENTS_GUIDELINES_URL, - PRIVACY_POLICY_PAGE, SENDOU_INK_DISCORD_URL, SENDOU_INK_GITHUB_URL, SENDOU_LOVE_EMOJI_PATH, @@ -21,16 +21,20 @@ import styles from "./Footer.module.css"; export function Footer() { const { t } = useTranslation(); + const user = useUser(); + + const showPrivacySettings = + import.meta.env.VITE_FUSE_ENABLED && !user?.roles.includes("MINOR_SUPPORT"); const currentYear = new Date().getFullYear(); return (