feat: add queue color to tickets list item

This commit is contained in:
canove
2021-01-11 07:22:56 -03:00
parent f642f2c788
commit 90b438025b
6 changed files with 25 additions and 24 deletions

View File

@@ -87,6 +87,15 @@ const useStyles = makeStyles(theme => ({
position: "absolute",
left: "50%",
},
ticketQueueColor: {
flex: "none",
width: "8px",
height: "100%",
position: "absolute",
top: "0%",
left: "0%",
},
}));
const TicketListItem = ({ ticket }) => {
@@ -138,6 +147,10 @@ const TicketListItem = ({ ticket }) => {
[classes.pendingTicket]: ticket.status === "pending",
})}
>
<span
style={{ backgroundColor: ticket.queue?.color }}
className={classes.ticketQueueColor}
></span>
<ListItemAvatar>
<Avatar
src={ticket.contact.profilePicUrl && ticket.contact.profilePicUrl}