tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
Added functionality to main area of the new button
cozylittle.house
3 months ago
3d3a59d1
57899a39
+7
1 changed file
expand all
collapse all
unified
split
app
(home-pages)
home
Actions
CreateNewButton.tsx
+7
app/(home-pages)/home/Actions/CreateNewButton.tsx
···
34
34
icon=<AddTiny className="m-1 shrink-0" />
35
35
label="New"
36
36
className="grow rounded-r-none sm:ml-0! sm:mr-0! ml-1! mr-0!"
37
37
+
onClick={async () => {
38
38
+
let id = await createNewLeaflet({
39
39
+
pageType: "doc",
40
40
+
redirectUser: false,
41
41
+
});
42
42
+
openNewLeaflet(id);
43
43
+
}}
37
44
/>
38
45
<Separator />
39
46
<CreateNewMoreOptionsButton />