tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
fix share links in menu
awarm.space
3 months ago
9500048b
ea2f4fb3
+5
-11
2 changed files
expand all
collapse all
unified
split
app
(home-pages)
home
LeafletList
LeafletInfo.tsx
LeafletOptions.tsx
+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
49
-
shareLink={`/${props.token.id}`}
49
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
43
-
let [state, setState] = useState<"normal" | "areYouSure">(
44
44
-
"normal",
45
45
-
);
43
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
85
-
<DefaultOptions
86
86
-
setState={setState}
87
87
-
{...props}
88
88
-
/>
83
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
125
-
link={`/${props.shareLink}`}
120
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
283
-
link={`${props.shareLink}`}
278
278
+
fullLink={props.shareLink}
284
279
/>
285
280
286
281
<hr className="border-border-light" />
···
382
377
</div>
383
378
);
384
379
};
385
385
-