alpha
Login
or
Join now
jack.is
/
leaflet
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
a tool for shared writing and social publishing
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
some wording changes
author
celine
date
7 months ago
(Dec 3, 2025, 4:18 PM -0500)
commit
177b3827
177b3827acd75c4dfa3c1a790efe4bf71d62e36a
parent
3d3a59d1
3d3a59d1d739c19a2052bd001cd70cda8f6a08e7
+39
-30
1 changed file
Expand all
Collapse all
Unified
Split
app
(home-pages)
home
Actions
CreateNewButton.tsx
+39
-30
app/(home-pages)/home/Actions/CreateNewButton.tsx
View file
Reviewed
···
75
75
/>
76
76
}
77
77
>
78
78
-
<div className="mx-2 text-sm text-tertiary font-bold ">New Leaflet</div>
79
78
<MenuItem
80
80
-
className="leading-tight"
79
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
98
-
className="leading-tight"
97
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
115
-
<hr className="border-border-light mt-2 mb-1 -mx-1" />
116
116
-
<div className="mx-2 text-sm text-tertiary font-bold">New Draft</div>
117
117
-
<MenuItem className="leading-tight" onSelect={async () => {}}>
118
118
-
<LooseLeafSmall />
119
119
-
<div className="flex flex-col">
120
120
-
Looseleaf
121
121
-
<div className="text-tertiary text-sm font-normal">
122
122
-
A one off post on AT Proto
114
114
+
{identity && identity.atp_did && (
115
115
+
<>
116
116
+
<hr className="border-border-light mt-2 mb-1 -mx-1" />
117
117
+
<div className="mx-2 text-sm text-tertiary font-bold">
118
118
+
AT Proto Draft
123
119
</div>
124
124
-
</div>
125
125
-
</MenuItem>
126
126
-
<hr className="border-border-light border-dashed mx-2 my-0.5" />
127
127
-
{identity?.publications.map((pub) => {
128
128
-
let router = useRouter();
129
129
-
return (
130
130
-
<MenuItem
131
131
-
onSelect={async () => {
132
132
-
let newLeaflet = await createPublicationDraft(pub.uri);
133
133
-
router.push(`/${newLeaflet}`);
134
134
-
}}
135
135
-
>
136
136
-
<PubIcon
137
137
-
record={pub.record as PubLeafletPublication.Record}
138
138
-
uri={pub.uri}
139
139
-
/>
140
140
-
{pub.name}
120
120
+
<MenuItem className="leading-snug" onSelect={async () => {}}>
121
121
+
<LooseLeafSmall />
122
122
+
<div className="flex flex-col">
123
123
+
Looseleaf
124
124
+
<div className="text-tertiary text-sm font-normal">
125
125
+
A one off post on AT Proto
126
126
+
</div>
127
127
+
</div>
141
128
</MenuItem>
142
142
-
);
143
143
-
})}
129
129
+
{identity?.publications && identity.publications.length > 0 && (
130
130
+
<>
131
131
+
<hr className="border-border-light border-dashed mx-2 my-0.5" />
132
132
+
{identity?.publications.map((pub) => {
133
133
+
let router = useRouter();
134
134
+
return (
135
135
+
<MenuItem
136
136
+
onSelect={async () => {
137
137
+
let newLeaflet = await createPublicationDraft(pub.uri);
138
138
+
router.push(`/${newLeaflet}`);
139
139
+
}}
140
140
+
>
141
141
+
<PubIcon
142
142
+
record={pub.record as PubLeafletPublication.Record}
143
143
+
uri={pub.uri}
144
144
+
/>
145
145
+
{pub.name}
146
146
+
</MenuItem>
147
147
+
);
148
148
+
})}
149
149
+
</>
150
150
+
)}
151
151
+
</>
152
152
+
)}
144
153
</Menu>
145
154
);
146
155
};