diff --git a/app/lish/[did]/[publication]/dashboard/settings/PostOptions.tsx b/app/lish/[did]/[publication]/dashboard/settings/PostOptions.tsx
index ad10c9bf..56f6106c 100644
--- a/app/lish/[did]/[publication]/dashboard/settings/PostOptions.tsx
+++ b/app/lish/[did]/[publication]/dashboard/settings/PostOptions.tsx
@@ -1,12 +1,53 @@
+import { PubLeafletPublication } from "lexicons/api";
+import { usePublicationData } from "../PublicationSWRProvider";
import { PubSettingsHeader } from "./PublicationSettings";
+import { useState } from "react";
+import { Toggle } from "components/Toggle";
+import { updatePublication } from "app/lish/createPub/updatePublication";
+import { useToaster } from "components/Toast";
+import { mutate } from "swr";
export const PostOptions = (props: {
backToMenu: () => void;
loading: boolean;
setLoading: (l: boolean) => void;
}) => {
+ let { data } = usePublicationData();
+
+ let { publication: pubData } = data || {};
+ let record = pubData?.record as PubLeafletPublication.Record;
+
+ let [showComments, setShowComments] = useState(
+ record?.preferences?.showComments === undefined
+ ? true
+ : record.preferences.showComments,
+ );
+ let [showMentions, setShowMentions] = useState(true);
+ let [showPrevNext, setShowPrevNext] = useState(true);
+
+ let toast = useToaster();
return (
-
+ Layout
+ Max Post Width
+ {
+ setShowPrevNext(!showPrevNext);
+ }}
+ >
+
+
Show Prev/Next Buttons
+
+ Show buttons that navigate to the previous and next posts
+
+
+
+
+ Interactions
+
+
{
+ setShowComments(!showComments);
+ }}
+ >
+ Show Comments
+
+
+
{
+ setShowMentions(!showMentions);
+ }}
+ >
+
+
Show Mentions
+
+ Display a list of posts on Bluesky that mention your post
+
+
+
+
+
);
};
diff --git a/components/ThemeManager/Pickers/PageThemePickers.tsx b/components/ThemeManager/Pickers/PageThemePickers.tsx
index 5238caa8..7c730731 100644
--- a/components/ThemeManager/Pickers/PageThemePickers.tsx
+++ b/components/ThemeManager/Pickers/PageThemePickers.tsx
@@ -394,27 +394,21 @@ export const PageBorderHider = (props: {
return (
<>
-
-
{
- handleToggle();
- }}
- disabledColor1="#8C8C8C"
- disabledColor2="#DBDBDB"
- />
-
+
>
);
};
diff --git a/components/ThemeManager/PubPickers/PubBackgroundPickers.tsx b/components/ThemeManager/PubPickers/PubBackgroundPickers.tsx
index d3272d66..cfdb932f 100644
--- a/components/ThemeManager/PubPickers/PubBackgroundPickers.tsx
+++ b/components/ThemeManager/PubPickers/PubBackgroundPickers.tsx
@@ -95,8 +95,8 @@ export const BackgroundPicker = (props: {
{
+ toggle={props.hasPageBackground}
+ onToggle={() => {
props.setHasPageBackground(!props.hasPageBackground);
props.hasPageBackground &&
props.openPicker === "page" &&
@@ -104,19 +104,14 @@ export const BackgroundPicker = (props: {
}}
disabledColor1="#8C8C8C"
disabledColor2="#DBDBDB"
- />
-