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
2 changed files with 4 additions and 0 deletions

View File

@@ -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}

View File

@@ -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">