[Glitch] Add unchangeable filtered notification setting for limited accounts

Port f8629367d2 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
shrike
Claire 2024-08-08 01:09:30 +02:00
parent 48e4c57905
commit ca6ad45121
1 changed files with 18 additions and 0 deletions

View File

@ -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 = () => {
/>
</span>
</CheckboxWithLabel>
<CheckboxWithLabel checked disabled onChange={noop}>
<strong>
<FormattedMessage
id='notifications.policy.filter_limited_accounts_title'
defaultMessage='Moderated accounts'
/>
</strong>
<span className='hint'>
<FormattedMessage
id='notifications.policy.filter_limited_accounts_hint'
defaultMessage='Limited by server moderators'
/>
</span>
</CheckboxWithLabel>
</div>
</section>
);