From 31a1d97c74f91a780c9645b485cc99a23f07dd3c Mon Sep 17 00:00:00 2001 From: Marc McIntosh Date: Sat, 9 Mar 2024 17:45:03 +0100 Subject: [PATCH] chore(chat): enable reacts strict mode --- src/lib/render/Chat.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/lib/render/Chat.tsx b/src/lib/render/Chat.tsx index 65092aee..5ee1eafc 100644 --- a/src/lib/render/Chat.tsx +++ b/src/lib/render/Chat.tsx @@ -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) => { return ( - - {config.host === "web" || config.dev ? ( - - ) : ( - - )} - + + + {config.host === "web" || config.dev ? ( + + ) : ( + + )} + + ); };