From 9500048ba8aa3f6fc8949e263ac42ac484e81920 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 25 Nov 2025 15:35:13 -0500 Subject: [PATCH] fix share links in menu --- app/(home-pages)/home/LeafletList/LeafletInfo.tsx | 2 +- .../home/LeafletList/LeafletOptions.tsx | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/app/(home-pages)/home/LeafletList/LeafletInfo.tsx b/app/(home-pages)/home/LeafletList/LeafletInfo.tsx index 478f853c..f974b758 100644 --- a/app/(home-pages)/home/LeafletList/LeafletInfo.tsx +++ b/app/(home-pages)/home/LeafletList/LeafletInfo.tsx @@ -46,7 +46,7 @@ export const LeafletInfo = (props: { leaflet={props.token} draftInPublication={props.draftInPublication} document_uri={props.document_uri} - shareLink={`/${props.token.id}`} + shareLink={`${props.token.id}`} archived={props.archived} loggedIn={props.loggedIn} /> diff --git a/app/(home-pages)/home/LeafletList/LeafletOptions.tsx b/app/(home-pages)/home/LeafletList/LeafletOptions.tsx index 6b810d58..891f49f0 100644 --- a/app/(home-pages)/home/LeafletList/LeafletOptions.tsx +++ b/app/(home-pages)/home/LeafletList/LeafletOptions.tsx @@ -40,9 +40,7 @@ export const LeafletOptions = (props: { archived?: boolean | null; loggedIn?: boolean; }) => { - let [state, setState] = useState<"normal" | "areYouSure">( - "normal", - ); + let [state, setState] = useState<"normal" | "areYouSure">("normal"); let [open, setOpen] = useState(false); let { identity } = useIdentityData(); let isPublicationOwner = @@ -82,10 +80,7 @@ export const LeafletOptions = (props: { {...props} /> ) : ( - + ) ) : state === "areYouSure" ? (

@@ -382,4 +377,3 @@ const DeleteAreYouSureForm = (props: { ); }; - -- 2.51.2