From 2f5a0207c58ef51475be2de2efc5bbe6e4dec1eb Mon Sep 17 00:00:00 2001 From: hfcRed <101019309+hfcRed@users.noreply.github.com> Date: Wed, 29 Jul 2026 13:27:05 +0200 Subject: [PATCH] Add share url button (#3259) --- app/components/MobileNav.tsx | 10 +++- app/components/ShareUrlButton.tsx | 44 +++++++++++++++++ .../components/TournamentHeader.tsx | 48 ++----------------- 3 files changed, 58 insertions(+), 44 deletions(-) create mode 100644 app/components/ShareUrlButton.tsx diff --git a/app/components/MobileNav.tsx b/app/components/MobileNav.tsx index 207a0a1e5..715efcd1f 100644 --- a/app/components/MobileNav.tsx +++ b/app/components/MobileNav.tsx @@ -15,7 +15,7 @@ import { import * as React from "react"; import { Dialog, Modal, ModalOverlay } from "react-aria-components"; import { useTranslation } from "react-i18next"; -import { Link } from "react-router"; +import { Link, useLocation } from "react-router"; import { useUser } from "~/features/auth/core/user"; import { useChatContext } from "~/features/chat/useChatContext"; import { FriendMenu } from "~/features/friends/components/FriendMenu"; @@ -27,6 +27,7 @@ import { EVENTS_PAGE, FRIENDS_PAGE, navIconUrl, + SENDOU_INK_BASE_URL, SETTINGS_PAGE, SUPPORT_PAGE, userPage, @@ -44,6 +45,7 @@ import { import { navItems } from "./layout/nav-items"; import styles from "./MobileNav.module.css"; import { NotificationDot } from "./NotificationDot"; +import { ShareUrlButton } from "./ShareUrlButton"; import { StreamListItems } from "./StreamListItems"; type SidebarData = RootLoaderData["sidebar"] | undefined; @@ -346,6 +348,7 @@ function MenuOverlay({ }) { const { t } = useTranslation(["front", "common"]); const user = useUser(); + const location = useLocation(); return ( ) : null} +