Fix chat user color variable

This commit is contained in:
Gabe Kangas 2022-09-01 19:37:11 -07:00
parent e0926b9350
commit aa0b43074f
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA
3 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ export default function ChatContainer(props: Props) {
const getNameChangeViewForMessage = (message: NameChangeEvent) => {
const { oldName, user } = message;
const { displayName, displayColor } = user;
const color = `var(--theme-user-colors-${displayColor})`;
const color = `var(--theme-color-users-${displayColor})`;
return (
<div className={s.nameChangeView}>

View file

@ -86,7 +86,7 @@ const ConnectedClient = ({ client }: { client: Client }) => {
// eslint-disable-next-line react/prop-types
const UserColorBlock = ({ color }) => {
const bg = `var(--theme-user-colors-${color})`;
const bg = `var(--theme-color-users-${color})`;
return (
<Row justify="space-around" align="middle">
<Col span={12}>Color</Col>

View file

@ -32,7 +32,7 @@ export default function ChatUserMessage({
const { id: messageId, body, user, timestamp } = message;
const { id: userId, displayName, displayColor } = user;
const color = `var(--theme-user-colors-${displayColor})`;
const color = `var(--theme-color-users-${displayColor})`;
const formattedTimestamp = `Sent ${formatTimestamp(timestamp)}`;
const [formattedMessage, setFormattedMessage] = useState<string>(body);