This commit is contained in:
Yidadaa 2023-04-24 01:17:28 +08:00
parent aeb986243c
commit 708c6829f7
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,6 @@ import {
} from "react-router-dom";
import { SideBar } from "./sidebar";
import { useAppConfig } from "../store/config";
import { NewChat } from "./new-chat";
export function Loading(props: { noLogo?: boolean }) {
return (
@ -42,6 +41,10 @@ const Chat = dynamic(async () => (await import("./chat")).Chat, {
loading: () => <Loading noLogo />,
});
const NewChat = dynamic(async () => (await import("./new-chat")).NewChat, {
loading: () => <Loading noLogo />,
});
export function useSwitchTheme() {
const config = useAppConfig();