a tool for shared writing and social publishing

fix share links in menu

+5 -11
+1 -1
app/(home-pages)/home/LeafletList/LeafletInfo.tsx
··· 46 46 leaflet={props.token} 47 47 draftInPublication={props.draftInPublication} 48 48 document_uri={props.document_uri} 49 - shareLink={`/${props.token.id}`} 49 + shareLink={`${props.token.id}`} 50 50 archived={props.archived} 51 51 loggedIn={props.loggedIn} 52 52 />
+4 -10
app/(home-pages)/home/LeafletList/LeafletOptions.tsx
··· 40 40 archived?: boolean | null; 41 41 loggedIn?: boolean; 42 42 }) => { 43 - let [state, setState] = useState<"normal" | "areYouSure">( 44 - "normal", 45 - ); 43 + let [state, setState] = useState<"normal" | "areYouSure">("normal"); 46 44 let [open, setOpen] = useState(false); 47 45 let { identity } = useIdentityData(); 48 46 let isPublicationOwner = ··· 82 80 {...props} 83 81 /> 84 82 ) : ( 85 - <DefaultOptions 86 - setState={setState} 87 - {...props} 88 - /> 83 + <DefaultOptions setState={setState} {...props} /> 89 84 ) 90 85 ) : state === "areYouSure" ? ( 91 86 <DeleteAreYouSureForm ··· 122 117 subtext="" 123 118 smokerText="Link copied!" 124 119 id="get-link" 125 - link={`/${props.shareLink}`} 120 + link={props.shareLink} 126 121 /> 127 122 <hr className="border-border-light" /> 128 123 <MenuItem ··· 280 275 } 281 276 smokerText="Link copied!" 282 277 id="get-link" 283 - link={`${props.shareLink}`} 278 + fullLink={props.shareLink} 284 279 /> 285 280 286 281 <hr className="border-border-light" /> ··· 382 377 </div> 383 378 ); 384 379 }; 385 -