feat: improve message colors
This commit is contained in:
parent
c2cd21672a
commit
a2ac9fa102
@ -62,10 +62,10 @@ export const Message = ({ message, userId }: MessageProps) => {
|
|||||||
|
|
||||||
if (message.authorId === userId) {
|
if (message.authorId === userId) {
|
||||||
backgroundColor = isMessageReceived(message)
|
backgroundColor = isMessageReceived(message)
|
||||||
? 'primary.dark'
|
? 'primary.main'
|
||||||
: 'primary.light'
|
: 'primary.light'
|
||||||
} else {
|
} else {
|
||||||
backgroundColor = 'secondary.light'
|
backgroundColor = 'secondary.main'
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user