From eba95df64601dfdf22baecc62211ba993390001f Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Thu, 31 Aug 2023 15:41:19 +0200 Subject: [PATCH] Disable moderation for user's own mutelist --- package.json | 2 +- src/components/Checkbox/Checkbox.tsx | 2 ++ src/pages/Settings/Moderation.tsx | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 469cce5..16f3355 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "primal-web-app", - "version": "0.77.17", + "version": "0.77.18", "description": "", "scripts": { "start": "vite", diff --git a/src/components/Checkbox/Checkbox.tsx b/src/components/Checkbox/Checkbox.tsx index 9d24f66..3c67a9a 100644 --- a/src/components/Checkbox/Checkbox.tsx +++ b/src/components/Checkbox/Checkbox.tsx @@ -9,6 +9,7 @@ const Checkbox: Component<{ label?: string, icon?: string, children?: JSXElement, + disabled?: boolean, }> = (props) => { return ( @@ -18,6 +19,7 @@ const Checkbox: Component<{ type='checkbox' checked={props.checked} onChange={props.onChange} + disabled={props.disabled} /> diff --git a/src/pages/Settings/Moderation.tsx b/src/pages/Settings/Moderation.tsx index cc8d9ea..a631865 100644 --- a/src/pages/Settings/Moderation.tsx +++ b/src/pages/Settings/Moderation.tsx @@ -240,6 +240,7 @@ const Moderation: Component = () => { id={`${my()?.pubkey}_content`} onChange={() => account?.actions.updateFilterList(my()?.pubkey, !my()?.content, my()?.trending)} checked={my()?.content} + disabled={true} />
@@ -247,6 +248,7 @@ const Moderation: Component = () => { id={`${my()?.pubkey}_trending`} onChange={() => account?.actions.updateFilterList(my()?.pubkey, my()?.content, !my()?.trending)} checked={my()?.trending} + disabled={true} />