Skip to content

Commit

Permalink
feat: add "str-chat__message--error-message" class to message error div
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Jul 5, 2022
1 parent bff3f86 commit c4f7520
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Message/MessageText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,16 @@ const UnMemoizedMessageTextComponent = <
>
{message.quoted_message && <QuotedMessage />}
{message.type === 'error' && (
<div className={`str-chat__${theme}-message--error-message`}>
<div
className={`str-chat__${theme}-message--error-message str-chat__message--error-message`}
>
{t<string>('Error · Unsent')}
</div>
)}
{message.status === 'failed' && (
<div className={`str-chat__${theme}-message--error-message`}>
<div
className={`str-chat__${theme}-message--error-message str-chat__message--error-message`}
>
{message.errorStatusCode !== 403
? t<string>('Message Failed · Click to try again')
: t<string>('Message Failed · Unauthorized')}
Expand Down

0 comments on commit c4f7520

Please sign in to comment.