From ca6ad45121ab78a15f54567ce22ed77d057b7f90 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 8 Aug 2024 01:09:30 +0200 Subject: [PATCH] [Glitch] Add unchangeable filtered notification setting for limited accounts Port f8629367d2cbb6495bb81d5357611e3759dbf35a to glitch-soc Signed-off-by: Claire --- .../components/policy_controls.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/javascript/flavours/glitch/features/notifications/components/policy_controls.tsx b/app/javascript/flavours/glitch/features/notifications/components/policy_controls.tsx index 58eff3fbcf..5982db2923 100644 --- a/app/javascript/flavours/glitch/features/notifications/components/policy_controls.tsx +++ b/app/javascript/flavours/glitch/features/notifications/components/policy_controls.tsx @@ -7,6 +7,9 @@ import { useAppSelector, useAppDispatch } from 'flavours/glitch/store'; import { CheckboxWithLabel } from './checkbox_with_label'; +// eslint-disable-next-line @typescript-eslint/no-empty-function +const noop = () => {}; + export const PolicyControls: React.FC = () => { const dispatch = useAppDispatch(); @@ -135,6 +138,21 @@ export const PolicyControls: React.FC = () => { /> + + + + + + + + + );