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: { ); }; -