From f963c90eb5cfa8e6ec523e8a3844887dec378c30 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Fri, 15 May 2026 09:28:48 -0700 Subject: [PATCH] Update appearance of chat disabled message (#10488) --- .../Messages/components/ChatDisabled.tsx | 72 +++++++++++-------- 1 file changed, 44 insertions(+), 28 deletions(-) diff --git a/src/screens/Messages/components/ChatDisabled.tsx b/src/screens/Messages/components/ChatDisabled.tsx index 51cac2b773..6684c66f4e 100644 --- a/src/screens/Messages/components/ChatDisabled.tsx +++ b/src/screens/Messages/components/ChatDisabled.tsx @@ -1,9 +1,7 @@ import {useCallback, useState} from 'react' import {View} from 'react-native' import {ToolsOzoneReportDefs} from '@atproto/api' -import {msg} from '@lingui/core/macro' -import {useLingui} from '@lingui/react' -import {Trans} from '@lingui/react/macro' +import {Trans, useLingui} from '@lingui/react/macro' import {useMutation} from '@tanstack/react-query' import {BLUESKY_MOD_SERVICE_HEADERS} from '#/lib/constants' @@ -12,6 +10,7 @@ import {useAgent, useSession} from '#/state/session' import {atoms as a, useBreakpoints, useTheme} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' +import {Warning_Stroke2_Corner0_Rounded as WarningIcon} from '#/components/icons/Warning' import {Loader} from '#/components/Loader' import * as Toast from '#/components/Toast' import {Text} from '#/components/Typography' @@ -21,17 +20,33 @@ export function ChatDisabled() { return ( + style={[ + a.align_center, + a.justify_center, + a.p_lg, + t.atoms.bg_contrast_50, + { + borderRadius: 40, + }, + ]}> + Your chats have been disabled - + Our moderators have reviewed reports and decided to disable your access to chats on Bluesky. @@ -45,21 +60,21 @@ export function ChatDisabled() { function AppealDialog() { const control = Dialog.useDialogControl() - const {_} = useLingui() + const {t: l} = useLingui() return ( <> - @@ -69,7 +84,7 @@ function AppealDialog() { } function DialogInner() { - const {_} = useLingui() + const {t: l} = useLingui() const control = Dialog.useDialogContext() const [details, setDetails] = useState('') const {gtMobile} = useBreakpoints() @@ -97,13 +112,13 @@ function DialogInner() { }, onError: err => { logger.error('Failed to submit chat appeal', {message: err}) - Toast.show(_(msg`Failed to submit appeal, please try again.`), { + Toast.show(l`Failed to submit appeal, please try again.`, { type: 'error', }) }, onSuccess: () => { control.close() - Toast.show(_(msg({message: 'Appeal submitted', context: 'toast'}))) + Toast.show(l({message: 'Appeal submitted', context: 'toast'})) }, }) @@ -111,7 +126,7 @@ function DialogInner() { const onBack = useCallback(() => control.close(), [control]) return ( - + Appeal this decision @@ -120,10 +135,8 @@ function DialogInner() { -