a tool for shared writing and social publishing

some wording changes

+39 -30
+39 -30
app/(home-pages)/home/Actions/CreateNewButton.tsx
··· 75 75 /> 76 76 } 77 77 > 78 - <div className="mx-2 text-sm text-tertiary font-bold ">New Leaflet</div> 79 78 <MenuItem 80 - className="leading-tight" 79 + className="leading-snug" 81 80 onSelect={async () => { 82 81 let id = await createNewLeaflet({ 83 82 pageType: "doc", ··· 95 94 </div> 96 95 </MenuItem> 97 96 <MenuItem 98 - className="leading-tight" 97 + className="leading-snug" 99 98 onSelect={async () => { 100 99 let id = await createNewLeaflet({ 101 100 pageType: "canvas", ··· 112 111 </div> 113 112 </div> 114 113 </MenuItem> 115 - <hr className="border-border-light mt-2 mb-1 -mx-1" /> 116 - <div className="mx-2 text-sm text-tertiary font-bold">New Draft</div> 117 - <MenuItem className="leading-tight" onSelect={async () => {}}> 118 - <LooseLeafSmall /> 119 - <div className="flex flex-col"> 120 - Looseleaf 121 - <div className="text-tertiary text-sm font-normal"> 122 - A one off post on AT Proto 114 + {identity && identity.atp_did && ( 115 + <> 116 + <hr className="border-border-light mt-2 mb-1 -mx-1" /> 117 + <div className="mx-2 text-sm text-tertiary font-bold"> 118 + AT Proto Draft 123 119 </div> 124 - </div> 125 - </MenuItem> 126 - <hr className="border-border-light border-dashed mx-2 my-0.5" /> 127 - {identity?.publications.map((pub) => { 128 - let router = useRouter(); 129 - return ( 130 - <MenuItem 131 - onSelect={async () => { 132 - let newLeaflet = await createPublicationDraft(pub.uri); 133 - router.push(`/${newLeaflet}`); 134 - }} 135 - > 136 - <PubIcon 137 - record={pub.record as PubLeafletPublication.Record} 138 - uri={pub.uri} 139 - /> 140 - {pub.name} 120 + <MenuItem className="leading-snug" onSelect={async () => {}}> 121 + <LooseLeafSmall /> 122 + <div className="flex flex-col"> 123 + Looseleaf 124 + <div className="text-tertiary text-sm font-normal"> 125 + A one off post on AT Proto 126 + </div> 127 + </div> 141 128 </MenuItem> 142 - ); 143 - })} 129 + {identity?.publications && identity.publications.length > 0 && ( 130 + <> 131 + <hr className="border-border-light border-dashed mx-2 my-0.5" /> 132 + {identity?.publications.map((pub) => { 133 + let router = useRouter(); 134 + return ( 135 + <MenuItem 136 + onSelect={async () => { 137 + let newLeaflet = await createPublicationDraft(pub.uri); 138 + router.push(`/${newLeaflet}`); 139 + }} 140 + > 141 + <PubIcon 142 + record={pub.record as PubLeafletPublication.Record} 143 + uri={pub.uri} 144 + /> 145 + {pub.name} 146 + </MenuItem> 147 + ); 148 + })} 149 + </> 150 + )} 151 + </> 152 + )} 144 153 </Menu> 145 154 ); 146 155 };