From c3adf2d65164a2b0dc42b080adb2ccab37ddc5ac Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Fri, 7 Jul 2023 12:00:59 -0700 Subject: [PATCH] DMs: Ensure every permission action has a CTA --- .../mobile/src/screens/chat-screen/ChatUserListItem.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/mobile/src/screens/chat-screen/ChatUserListItem.tsx b/packages/mobile/src/screens/chat-screen/ChatUserListItem.tsx index 311379a799..e33d4bf6a1 100644 --- a/packages/mobile/src/screens/chat-screen/ChatUserListItem.tsx +++ b/packages/mobile/src/screens/chat-screen/ChatUserListItem.tsx @@ -147,10 +147,13 @@ const useStyles = makeStyles(({ spacing, palette, typography }) => ({ } })) -const ctaToTextMap = { +const ctaToTextMap: Record = { [ChatPermissionAction.TIP]: messages.ctaTip, [ChatPermissionAction.UNBLOCK]: messages.ctaBlock, - [ChatPermissionAction.NONE]: messages.ctaNone + [ChatPermissionAction.NONE]: messages.ctaNone, + [ChatPermissionAction.WAIT]: messages.ctaNone, + [ChatPermissionAction.NOT_APPLICABLE]: messages.ctaNone, + [ChatPermissionAction.SIGN_UP]: messages.ctaNone } type ChatUserListItemProps = {