a tool for shared writing and social publishing

fixed the hasLooseleaf check, some style tweaks to the new doc more options dropdown

+17 -13
+15 -11
app/(home-pages)/home/Actions/CreateNewButton.tsx
··· 68 68 /> 69 69 } 70 70 > 71 - <div className="mx-2 text-sm text-tertiary ">New Leaflet</div> 71 + <div className="mx-2 text-sm text-tertiary font-bold ">New Leaflet</div> 72 72 <MenuItem 73 - className="pt-0.5!" 73 + className="leading-tight" 74 74 onSelect={async () => { 75 75 let id = await createNewLeaflet({ 76 76 pageType: "doc", ··· 88 88 </div> 89 89 </MenuItem> 90 90 <MenuItem 91 - className="pt-0.5!" 91 + className="leading-tight" 92 92 onSelect={async () => { 93 93 let id = await createNewLeaflet({ 94 94 pageType: "canvas", ··· 105 105 </div> 106 106 </div> 107 107 </MenuItem> 108 - <div className="mx-2 text-sm text-tertiary mt-2">New Draft</div> 109 - 108 + <hr className="border-border-light mt-2 mb-1 -mx-1" /> 109 + <div className="mx-2 text-sm text-tertiary font-bold">New Draft</div> 110 + <MenuItem className="leading-tight" onSelect={async () => {}}> 111 + <LooseLeafSmall /> 112 + <div className="flex flex-col"> 113 + Looseleaf 114 + <div className="text-tertiary text-sm font-normal"> 115 + A one off post on AT Proto 116 + </div> 117 + </div> 118 + </MenuItem> 119 + <hr className="border-border-light border-dashed mx-2 my-0.5" /> 110 120 {identity?.publications.map((pub) => { 111 121 let router = useRouter(); 112 122 return ( ··· 124 134 </MenuItem> 125 135 ); 126 136 })} 127 - 128 - <hr className="border-border-light border-dashed mx-2 my-0.5" /> 129 - <MenuItem onSelect={async () => {}}> 130 - <LooseLeafSmall /> 131 - Looseleaf 132 - </MenuItem> 133 137 </Menu> 134 138 ); 135 139 };
+2 -2
components/ActionBar/Publications.tsx
··· 23 23 currentPubUri: string | undefined; 24 24 }) => { 25 25 let { identity } = useIdentityData(); 26 - let hasLooseleafs = !!identity?.permission_token_on_homepage.find( 27 - (f) => f.permission_tokens.leaflets_to_documents, 26 + let hasLooseleafs = identity?.permission_token_on_homepage.find( 27 + (f) => f.permission_tokens.leaflets_to_documents[0], 28 28 ); 29 29 console.log(hasLooseleafs); 30 30