mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 06:46:01 +03:00
Fix chat user color variable
This commit is contained in:
parent
e0926b9350
commit
aa0b43074f
3 changed files with 3 additions and 3 deletions
|
@ -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}>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue