diff --git a/app/(home-pages)/home/Actions/CreateNewButton.tsx b/app/(home-pages)/home/Actions/CreateNewButton.tsx index 3ccb8762..9286614e 100644 --- a/app/(home-pages)/home/Actions/CreateNewButton.tsx +++ b/app/(home-pages)/home/Actions/CreateNewButton.tsx @@ -75,9 +75,8 @@ export const CreateNewMoreOptionsButton = (props: {}) => { /> } > -
New Leaflet
{ let id = await createNewLeaflet({ pageType: "doc", @@ -95,7 +94,7 @@ export const CreateNewMoreOptionsButton = (props: {}) => { { let id = await createNewLeaflet({ pageType: "canvas", @@ -112,35 +111,45 @@ export const CreateNewMoreOptionsButton = (props: {}) => { -
-
New Draft
- {}}> - -
- Looseleaf -
- A one off post on AT Proto + {identity && identity.atp_did && ( + <> +
+
+ AT Proto Draft
-
- -
- {identity?.publications.map((pub) => { - let router = useRouter(); - return ( - { - let newLeaflet = await createPublicationDraft(pub.uri); - router.push(`/${newLeaflet}`); - }} - > - - {pub.name} + {}}> + +
+ Looseleaf +
+ A one off post on AT Proto +
+
- ); - })} + {identity?.publications && identity.publications.length > 0 && ( + <> +
+ {identity?.publications.map((pub) => { + let router = useRouter(); + return ( + { + let newLeaflet = await createPublicationDraft(pub.uri); + router.push(`/${newLeaflet}`); + }} + > + + {pub.name} + + ); + })} + + )} + + )} ); };