0

fix(embeds): import custom theme into chat embeds

This commit is contained in:
Gabe Kangas 2023-05-05 12:21:20 -07:00
parent 14d95a69f3
commit d139cf08f5
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
2 changed files with 4 additions and 0 deletions

View File

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

View File

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