Skip to content

Commit

Permalink
frontend: typing/recording events shown green
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Jun 28, 2024
1 parent 3fde75a commit 1a652f3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/src/components/TicketListItemCustom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ const useStyles = makeStyles((theme) => ({
"& .MuiBadge-anchorOriginTopRightRectangle": {
transform: "scale(1) translate(0%, -40%)",
},

},
presence: {
color: theme.mode === 'light' ? "green" : "lightgreen",
fontWeight: "bold",
}
}));

Expand Down Expand Up @@ -520,9 +523,9 @@ const TicketListItemCustom = ({ ticket, setTabOpen }) => {
color="textSecondary"
>
{ticket.contact?.presence !== "available" ? (
<>
<span className={classes.presence}>
{i18n.t(`presence.${ticket.contact.presence}`)}
</>
</span>
) : (
<>
{ticket.lastMessage.includes('data:image/png;base64') ? <MarkdownWrapper> Localização</MarkdownWrapper> : <MarkdownWrapper>{ticket.lastMessage}</MarkdownWrapper>}
Expand Down

0 comments on commit 1a652f3

Please sign in to comment.