Skip to content

Commit

Permalink
chore(chat): enable reacts strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh committed Mar 9, 2024
1 parent 5024110 commit 31a1d97
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/lib/render/Chat.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import React from "react";
import React, { StrictMode } from "react";
import { ConfigProvider, type Config } from "../../contexts/config-context.tsx";
import { ChatWithSideBar } from "./ChatWithSideBar.tsx";
import { ChatWithOutSideBar } from "./ChatWithoutSideBar.tsx";

export const Chat: React.FC<Config> = (config) => {
return (
<ConfigProvider config={config}>
{config.host === "web" || config.dev ? (
<ChatWithSideBar />
) : (
<ChatWithOutSideBar />
)}
</ConfigProvider>
<StrictMode>
<ConfigProvider config={config}>
{config.host === "web" || config.dev ? (
<ChatWithSideBar />
) : (
<ChatWithOutSideBar />
)}
</ConfigProvider>
</StrictMode>
);
};

0 comments on commit 31a1d97

Please sign in to comment.