Browse Source

fix(embeds): import custom theme into chat embeds

pull/2993/head
Gabe Kangas 2 years ago
parent
commit
d139cf08f5
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      web/pages/embed/chat/readonly/index.tsx
  2. 2
      web/pages/embed/chat/readwrite/index.tsx

2
web/pages/embed/chat/readonly/index.tsx

@ -7,6 +7,7 @@ import {
visibleChatMessagesSelector, visibleChatMessagesSelector,
isChatAvailableSelector, isChatAvailableSelector,
} from '../../../../components/stores/ClientConfigStore'; } from '../../../../components/stores/ClientConfigStore';
import { Theme } from '../../../../components/theme/Theme';
export default function ReadOnlyChatEmbed() { export default function ReadOnlyChatEmbed() {
const currentUser = useRecoilValue(currentUserAtom); const currentUser = useRecoilValue(currentUserAtom);
@ -16,6 +17,7 @@ export default function ReadOnlyChatEmbed() {
return ( return (
<div> <div>
<ClientConfigStore /> <ClientConfigStore />
<Theme />
{currentUser && ( {currentUser && (
<ChatContainer <ChatContainer
messages={messages} messages={messages}

2
web/pages/embed/chat/readwrite/index.tsx

@ -16,6 +16,7 @@ import Header from '../../../../components/ui/Header/Header';
import { ClientConfig } from '../../../../interfaces/client-config.model'; import { ClientConfig } from '../../../../interfaces/client-config.model';
import { AppStateOptions } from '../../../../components/stores/application-state'; import { AppStateOptions } from '../../../../components/stores/application-state';
import { ServerStatus } from '../../../../interfaces/server-status.model'; import { ServerStatus } from '../../../../interfaces/server-status.model';
import { Theme } from '../../../../components/theme/Theme';
export default function ReadWriteChatEmbed() { export default function ReadWriteChatEmbed() {
const currentUser = useRecoilValue(currentUserAtom); const currentUser = useRecoilValue(currentUserAtom);
@ -47,6 +48,7 @@ export default function ReadWriteChatEmbed() {
`} `}
</style> </style>
<ClientConfigStore /> <ClientConfigStore />
<Theme />
<Header name={headerText} chatAvailable chatDisabled={chatDisabled} online={videoAvailable} /> <Header name={headerText} chatAvailable chatDisabled={chatDisabled} online={videoAvailable} />
{currentUser && ( {currentUser && (
<div id="chat-container"> <div id="chat-container">

Loading…
Cancel
Save