Skip to content

Commit

Permalink
fix: chat details (openwallet-foundation#1029)
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Lucas Calheirani <[email protected]>
  • Loading branch information
CarolineLCa authored Nov 21, 2023
1 parent a10963d commit 2a448d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/legacy/core/App/components/chat/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const MessageIcon: React.FC<{ type: CallbackType }> = ({ type }) => {
const { ChatTheme: theme, Assets } = useTheme()

return (
<View style={{ ...theme.documentIconContainer, marginBottom: 16 }}>
<View style={{ ...theme.documentIconContainer }}>
{type === CallbackType.CredentialOffer && <Assets.svg.iconCredentialOfferLight width={40} height={40} />}
{type === CallbackType.PresentationSent && <Assets.svg.iconInfoSentLight width={40} height={40} />}
{type === CallbackType.ProofRequest && <Assets.svg.iconProofRequestLight width={40} height={40} />}
Expand Down
2 changes: 1 addition & 1 deletion packages/legacy/core/App/screens/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ const Chat: React.FC<ChatProps> = ({ route }) => {
_id: Role.me,
}}
renderActions={(props) => renderActions(props, theme, actions)}
onPressActionButton={() => setShowActionSlider(true)}
onPressActionButton={actions ? () => setShowActionSlider(true) : undefined}
/>
{showActionSlider && <ActionSlider onDismiss={onDismiss} actions={actions} />}
</SafeAreaView>
Expand Down
2 changes: 1 addition & 1 deletion packages/legacy/core/App/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2a448d0

Please sign in to comment.