diff --git a/src/components/BotAccountAlert.tsx b/src/components/BotAccountAlert.tsx index 9c13323449..d1c7307c00 100644 --- a/src/components/BotAccountAlert.tsx +++ b/src/components/BotAccountAlert.tsx @@ -1,7 +1,5 @@ import {View} from 'react-native' -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 {useSession} from '#/state/session' import {atoms as a, useTheme, web} from '#/alf' @@ -19,19 +17,19 @@ export function BotAccountAlert({ control: Dialog.DialogControlProps profile: bsky.profile.AnyProfileView }) { - const {_} = useLingui() + const {t: l} = useLingui() const t = useTheme() const {currentAccount} = useSession() const isSelf = profile.did === currentAccount?.did const description = isSelf - ? 'You have marked this account as automated. You can remove it at any time from your account settings.' - : 'This account has been marked as automated by its owner' + ? l`You have marked this account as automated. You can remove it at any time from your account settings.` + : l`This account has been marked as automated by its owner.` return ( @@ -44,14 +42,14 @@ export function BotAccountAlert({ a.pb_xl, a.text_md, t.atoms.text_contrast_high, - {maxWidth: 260}, + {maxWidth: 300}, ]}> - {description} + {description} {isSelf ? (