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
28
pulls
pipelines
don't show looseleafs tab if none
awarm.space
3 months ago
66c01339
8ea2c33f
+4
-2
1 changed file
expand all
collapse all
unified
split
components
ActionBar
Publications.tsx
+4
-2
components/ActionBar/Publications.tsx
···
23
23
currentPubUri: string | undefined;
24
24
}) => {
25
25
let { identity } = useIdentityData();
26
26
-
let looseleaves = ["placeholder"];
26
26
+
let looseleaves = identity?.permission_token_on_homepage.find(
27
27
+
(f) => f.permission_tokens.leaflets_to_documents,
28
28
+
);
27
29
28
30
// don't show pub list button if not logged in or no pub list
29
31
// we show a "start a pub" banner instead
···
32
34
33
35
return (
34
36
<div className="pubListWrapper w-full flex flex-col gap-1 sm:bg-transparent sm:border-0">
35
35
-
{looseleaves.length > 0 && (
37
37
+
{looseleaves && (
36
38
<>
37
39
<SpeedyLink
38
40
href={`/looseleafs`}