From 4337d1ee1d9a93fe662944ebbc7d0b590bc191da Mon Sep 17 00:00:00 2001 From: tianma-if Date: Thu, 8 Oct 2026 23:59:14 +0800 Subject: [PATCH] fix: make share management entry visibly clickable --- apps/web/src/components/dialogs/ShareMemoDialog.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/web/src/components/dialogs/ShareMemoDialog.tsx b/apps/web/src/components/dialogs/ShareMemoDialog.tsx index f748dad3..2e492dfc 100644 --- a/apps/web/src/components/dialogs/ShareMemoDialog.tsx +++ b/apps/web/src/components/dialogs/ShareMemoDialog.tsx @@ -1,8 +1,8 @@ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; -import { Check, Copy, ExternalLink, Link2, LoaderCircle, RefreshCw, Share2, Trash2 } from "lucide-react"; +import { ArrowRight, Check, Copy, ExternalLink, Link2, LoaderCircle, RefreshCw, Share2, Trash2 } from "lucide-react"; import { useEffect, useRef, useState } from "react"; import { useTranslation } from "react-i18next"; -import { useLocation, useNavigate } from "react-router"; +import { Link, useLocation } from "react-router"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/dialog"; import { Input } from "@/components/ui/input"; @@ -56,7 +56,6 @@ export const ShareMemoDialog = ({ onOpenChange: (open: boolean) => void; }) => { const { t } = useTranslation(); - const navigate = useNavigate(); const location = useLocation(); const queryClient = useQueryClient(); const [copyState, setCopyState] = useState<"idle" | "copied" | "error">("idle"); @@ -259,8 +258,11 @@ export const ShareMemoDialog = ({ {location.pathname !== "/settings" ? (
-
) : null}