From aa0b43074ffc5ec9a1caa811cce3df6aaa466b77 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 1 Sep 2022 19:37:11 -0700 Subject: [PATCH] Fix chat user color variable --- web/components/chat/ChatContainer/ChatContainer.tsx | 2 +- .../ChatModerationActionMenu/ChatModerationDetailsModal.tsx | 2 +- web/components/chat/ChatUserMessage/ChatUserMessage.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsx index 6e7e54198..9deceba91 100644 --- a/web/components/chat/ChatContainer/ChatContainer.tsx +++ b/web/components/chat/ChatContainer/ChatContainer.tsx @@ -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 (
diff --git a/web/components/chat/ChatModerationActionMenu/ChatModerationDetailsModal.tsx b/web/components/chat/ChatModerationActionMenu/ChatModerationDetailsModal.tsx index 98fb5ae5c..234533183 100644 --- a/web/components/chat/ChatModerationActionMenu/ChatModerationDetailsModal.tsx +++ b/web/components/chat/ChatModerationActionMenu/ChatModerationDetailsModal.tsx @@ -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 ( Color diff --git a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx index affd16c38..229aa378d 100644 --- a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx +++ b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx @@ -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(body);