a tool for shared writing and social publishing

don't show looseleafs tab if none

+4 -2
+4 -2
components/ActionBar/Publications.tsx
··· 23 23 currentPubUri: string | undefined; 24 24 }) => { 25 25 let { identity } = useIdentityData(); 26 - let looseleaves = ["placeholder"]; 26 + let looseleaves = identity?.permission_token_on_homepage.find( 27 + (f) => f.permission_tokens.leaflets_to_documents, 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 - {looseleaves.length > 0 && ( 37 + {looseleaves && ( 36 38 <> 37 39 <SpeedyLink 38 40 href={`/looseleafs`}