fix(embeds): import custom theme into chat embeds
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user