隐藏配置

This commit is contained in:
xuzhenjun
2023-04-11 00:57:50 +08:00
parent e1eb70cf71
commit 8ec37bc7f1
2 changed files with 14 additions and 20 deletions

View File

@@ -34,9 +34,9 @@ export function Loading(props: { noLogo?: boolean }) {
);
}
const Settings = dynamic(async () => (await import("./settings")).Settings, {
loading: () => <Loading noLogo />,
});
// const Settings = dynamic(async () => (await import("./settings")).Settings, {
// loading: () => <Loading noLogo />,
// });
const ChatList = dynamic(async () => (await import("./chat-list")).ChatList, {
loading: () => <Loading noLogo />,
@@ -146,7 +146,7 @@ function _Home() {
onClick={chatStore.deleteSession}
/>
</div>
<div className={styles["sidebar-action"]}>
{/* <div className={styles["sidebar-action"]}>
<IconButton
icon={<SettingsIcon />}
onClick={() => {
@@ -155,7 +155,7 @@ function _Home() {
}}
shadow
/>
</div>
</div> */}
<div className={styles["sidebar-action"]}>
<a href={REPO_URL} target="_blank">
<IconButton icon={<GithubIcon />} shadow />
@@ -177,20 +177,11 @@ function _Home() {
</div>
<div className={styles["window-content"]}>
{openSettings ? (
<Settings
closeSettings={() => {
setOpenSettings(false);
setShowSideBar(true);
}}
/>
) : (
<Chat
key="chat"
showSideBar={() => setShowSideBar(true)}
sideBarShowing={showSideBar}
/>
)}
<Chat
key="chat"
showSideBar={() => setShowSideBar(true)}
sideBarShowing={showSideBar}
/>
</div>
</div>
);