From d91b46e9c05d667d6dfe1ff2a6ba44187022a491 Mon Sep 17 00:00:00 2001 From: JackHans Date: Thu, 6 Apr 2023 03:53:43 +0000 Subject: [PATCH] update chat.tsx, home.tsx, settings.tsx --- app/components/chat.tsx | 4 ++-- app/components/home.tsx | 11 ++++++----- app/components/settings.tsx | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 90c88d97b..9a7812337 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -537,7 +537,7 @@ export function Chat(props: { onClick={props?.showSideBar} /> -
+ {/*
} bordered @@ -546,7 +546,7 @@ export function Chat(props: { setShowPromptModal(true); }} /> -
+
*/}
} diff --git a/app/components/home.tsx b/app/components/home.tsx index 9e57cb870..d181933e2 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -143,9 +143,10 @@ function _Home() { } onClick={() => { - if (confirm(Locale.Home.DeleteChat)) { - removeSession(currentIndex); - } + // if (confirm(Locale.Home.DeleteChat)) { + // removeSession(currentIndex); + // } + setShowSideBar(false); }} />
@@ -159,11 +160,11 @@ function _Home() { shadow /> -
+ {/*
} shadow /> -
+
*/}
void }) {
-
+ {/*
} onClick={clearSessions} bordered title={Locale.Settings.Actions.ClearAll} /> -
+
*/}
}