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
removed show comments from update pub form
cozylittle.house
2 months ago
a560d585
09dc7c78
+8
-14
1 changed file
expand all
collapse all
unified
split
app
lish
createPub
UpdatePubForm.tsx
+8
-14
app/lish/createPub/UpdatePubForm.tsx
···
21
21
import { Checkbox } from "components/Checkbox";
22
22
import type { GetDomainConfigResponseBody } from "@vercel/sdk/esm/models/getdomainconfigop";
23
23
import { PubSettingsHeader } from "../[did]/[publication]/dashboard/settings/PublicationSettings";
24
24
+
import { Toggle } from "components/Toggle";
24
25
25
26
export const EditPubForm = (props: {
26
27
backToMenuAction: () => void;
···
101
102
General Settings
102
103
</PubSettingsHeader>
103
104
<div className="flex flex-col gap-3 w-[1000px] max-w-full pb-2">
104
104
-
<div className="flex items-center justify-between gap-2 ">
105
105
+
<div className="flex items-center justify-between gap-2 mt-2 ">
105
106
<p className="pl-0.5 pb-0.5 text-tertiary italic text-sm font-bold">
106
107
Logo <span className="font-normal">(optional)</span>
107
108
</p>
···
171
172
<CustomDomainForm />
172
173
<hr className="border-border-light" />
173
174
174
174
-
<Checkbox
175
175
-
checked={showInDiscover}
176
176
-
onChange={(e) => setShowInDiscover(e.target.checked)}
175
175
+
<Toggle
176
176
+
toggle={showInDiscover}
177
177
+
onToggle={() => setShowInDiscover(!showInDiscover)}
177
178
>
178
178
-
<div className=" pt-0.5 flex flex-col text-sm italic text-tertiary ">
179
179
+
<div className=" pt-0.5 flex flex-col text-sm text-tertiary ">
179
180
<p className="font-bold">
180
181
Show In{" "}
181
182
<a href="/discover" target="_blank">
···
190
191
page. You can change this at any time!
191
192
</p>
192
193
</div>
193
193
-
</Checkbox>
194
194
+
</Toggle>
194
195
195
195
-
<Checkbox
196
196
-
checked={showComments}
197
197
-
onChange={(e) => setShowComments(e.target.checked)}
198
198
-
>
199
199
-
<div className=" pt-0.5 flex flex-col text-sm italic text-tertiary ">
200
200
-
<p className="font-bold">Show comments on posts</p>
201
201
-
</div>
202
202
-
</Checkbox>
196
196
+
203
197
</div>
204
198
</form>
205
199
);