diff --git a/app/(home-pages)/home/Actions/CreateNewButton.tsx b/app/(home-pages)/home/Actions/CreateNewButton.tsx index 8d2203be..9b4b2ed9 100644 --- a/app/(home-pages)/home/Actions/CreateNewButton.tsx +++ b/app/(home-pages)/home/Actions/CreateNewButton.tsx @@ -68,9 +68,9 @@ export const CreateNewMoreOptionsButton = (props: {}) => { /> } > -
New Leaflet
+
New Leaflet
{ let id = await createNewLeaflet({ pageType: "doc", @@ -88,7 +88,7 @@ export const CreateNewMoreOptionsButton = (props: {}) => { { let id = await createNewLeaflet({ pageType: "canvas", @@ -105,8 +105,18 @@ export const CreateNewMoreOptionsButton = (props: {}) => { -
New Draft
- +
+
New Draft
+ {}}> + +
+ Looseleaf +
+ A one off post on AT Proto +
+
+
+
{identity?.publications.map((pub) => { let router = useRouter(); return ( @@ -124,12 +134,6 @@ export const CreateNewMoreOptionsButton = (props: {}) => { ); })} - -
- {}}> - - Looseleaf - ); }; diff --git a/components/ActionBar/Publications.tsx b/components/ActionBar/Publications.tsx index f8f5abfc..e6465cb2 100644 --- a/components/ActionBar/Publications.tsx +++ b/components/ActionBar/Publications.tsx @@ -23,8 +23,8 @@ export const PublicationButtons = (props: { currentPubUri: string | undefined; }) => { let { identity } = useIdentityData(); - let hasLooseleafs = !!identity?.permission_token_on_homepage.find( - (f) => f.permission_tokens.leaflets_to_documents, + let hasLooseleafs = identity?.permission_token_on_homepage.find( + (f) => f.permission_tokens.leaflets_to_documents[0], ); console.log(hasLooseleafs);