diff --git a/src/screens/Messages/components/RequestButtons.tsx b/src/screens/Messages/components/RequestButtons.tsx index f68767b764..1e6ed3d15e 100644 --- a/src/screens/Messages/components/RequestButtons.tsx +++ b/src/screens/Messages/components/RequestButtons.tsx @@ -49,18 +49,42 @@ export function RejectMenu({ } }, onError: () => { - Toast.show(_(msg`Failed to delete chat`), 'xmark') + Toast.show( + _( + msg({ + context: 'toast', + message: 'Failed to delete chat', + }), + ), + 'xmark', + ); }, }) const [queueBlock] = useProfileBlockMutationQueue(shadowedProfile) const onPressDelete = useCallback(() => { - Toast.show(_(msg`Chat deleted`), 'check') + Toast.show( + _( + msg({ + context: 'toast', + message: 'Chat deleted', + }), + ), + 'check', + ); leaveConvo() }, [leaveConvo, _]) const onPressBlock = useCallback(() => { - Toast.show(_(msg`Account blocked`), 'check') + Toast.show( + _( + msg({ + context: 'toast', + message: 'Account blocked', + }), + ), + 'check', + ); // block and also delete convo queueBlock() leaveConvo() @@ -179,7 +203,15 @@ export function AcceptChatButton({ // no difference if the request failed - when they send a message, the convo will be accepted // automatically. The only difference is that when they back out of the convo (without sending a message), the conversation will be rejected. // the list will still have this chat in it -sfn - Toast.show(_(msg`Failed to accept chat`), 'xmark') + Toast.show( + _( + msg({ + context: 'toast', + message: 'Failed to accept chat', + }), + ), + 'xmark', + ); }, }) @@ -230,12 +262,28 @@ export function DeleteChatButton({ } }, onError: () => { - Toast.show(_(msg`Failed to delete chat`), 'xmark') + Toast.show( + _( + msg({ + context: 'toast', + message: 'Failed to delete chat', + }), + ), + 'xmark', + ); }, }) const onPressDelete = useCallback(() => { - Toast.show(_(msg`Chat deleted`), 'check') + Toast.show( + _( + msg({ + context: 'toast', + message: 'Chat deleted', + }), + ), + 'check', + ); leaveConvo() }, [leaveConvo, _]) diff --git a/src/screens/StarterPack/Wizard/StepDetails.tsx b/src/screens/StarterPack/Wizard/StepDetails.tsx index ec3eb99e1e..a01a3d3a9c 100644 --- a/src/screens/StarterPack/Wizard/StepDetails.tsx +++ b/src/screens/StarterPack/Wizard/StepDetails.tsx @@ -51,7 +51,13 @@ export function StepDetails() { onChangeText={text => dispatch({type: 'SetName', name: text})} /> + label={_( + msg({ + comment: + 'Accessibility label describing how many characters the user has entered out of a 50-character limit in a text input field', + message: '${state.name?.length} out of 50', + }), + )}> {state.name?.length ?? 0}/50