From 2a448d012d8059878f0998a645957c50d266ba79 Mon Sep 17 00:00:00 2001 From: Caroline Lucas Calheirani <97122568+CarolineLCa@users.noreply.github.com> Date: Tue, 21 Nov 2023 18:05:59 -0300 Subject: [PATCH] fix: chat details (#1029) Signed-off-by: Caroline Lucas Calheirani --- packages/legacy/core/App/components/chat/ChatMessage.tsx | 2 +- packages/legacy/core/App/screens/Chat.tsx | 2 +- packages/legacy/core/App/theme.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/legacy/core/App/components/chat/ChatMessage.tsx b/packages/legacy/core/App/components/chat/ChatMessage.tsx index 9e2ac9b879..c75f356542 100644 --- a/packages/legacy/core/App/components/chat/ChatMessage.tsx +++ b/packages/legacy/core/App/components/chat/ChatMessage.tsx @@ -41,7 +41,7 @@ const MessageIcon: React.FC<{ type: CallbackType }> = ({ type }) => { const { ChatTheme: theme, Assets } = useTheme() return ( - + {type === CallbackType.CredentialOffer && } {type === CallbackType.PresentationSent && } {type === CallbackType.ProofRequest && } diff --git a/packages/legacy/core/App/screens/Chat.tsx b/packages/legacy/core/App/screens/Chat.tsx index d140a465b7..22161612c9 100644 --- a/packages/legacy/core/App/screens/Chat.tsx +++ b/packages/legacy/core/App/screens/Chat.tsx @@ -319,7 +319,7 @@ const Chat: React.FC = ({ route }) => { _id: Role.me, }} renderActions={(props) => renderActions(props, theme, actions)} - onPressActionButton={() => setShowActionSlider(true)} + onPressActionButton={actions ? () => setShowActionSlider(true) : undefined} /> {showActionSlider && } diff --git a/packages/legacy/core/App/theme.ts b/packages/legacy/core/App/theme.ts index 6c617454a4..4ed7ede54f 100644 --- a/packages/legacy/core/App/theme.ts +++ b/packages/legacy/core/App/theme.ts @@ -715,7 +715,7 @@ export const ChatTheme = { backgroundColor: ColorPallet.brand.primary, alignSelf: 'flex-start', borderRadius: 4, - marginBottom: 8, + marginBottom: 16, justifyContent: 'center', alignItems: 'center', width: 50,