mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
update chat.tsx, home.tsx, settings.tsx
This commit is contained in:
parent
192115b003
commit
d91b46e9c0
@ -537,7 +537,7 @@ export function Chat(props: {
|
|||||||
onClick={props?.showSideBar}
|
onClick={props?.showSideBar}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["window-action-button"]}>
|
{/* <div className={styles["window-action-button"]}>
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={<BrainIcon />}
|
icon={<BrainIcon />}
|
||||||
bordered
|
bordered
|
||||||
@ -546,7 +546,7 @@ export function Chat(props: {
|
|||||||
setShowPromptModal(true);
|
setShowPromptModal(true);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div> */}
|
||||||
<div className={styles["window-action-button"]}>
|
<div className={styles["window-action-button"]}>
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={<ExportIcon />}
|
icon={<ExportIcon />}
|
||||||
|
@ -143,9 +143,10 @@ function _Home() {
|
|||||||
<IconButton
|
<IconButton
|
||||||
icon={<CloseIcon />}
|
icon={<CloseIcon />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (confirm(Locale.Home.DeleteChat)) {
|
// if (confirm(Locale.Home.DeleteChat)) {
|
||||||
removeSession(currentIndex);
|
// removeSession(currentIndex);
|
||||||
}
|
// }
|
||||||
|
setShowSideBar(false);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -159,11 +160,11 @@ function _Home() {
|
|||||||
shadow
|
shadow
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["sidebar-action"]}>
|
{/* <div className={styles["sidebar-action"]}>
|
||||||
<a href={REPO_URL} target="_blank">
|
<a href={REPO_URL} target="_blank">
|
||||||
<IconButton icon={<GithubIcon />} shadow />
|
<IconButton icon={<GithubIcon />} shadow />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div> */}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
@ -139,14 +139,14 @@ export function Settings(props: { closeSettings: () => void }) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["window-actions"]}>
|
<div className={styles["window-actions"]}>
|
||||||
<div className={styles["window-action-button"]}>
|
{/* <div className={styles["window-action-button"]}>
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={<ClearIcon />}
|
icon={<ClearIcon />}
|
||||||
onClick={clearSessions}
|
onClick={clearSessions}
|
||||||
bordered
|
bordered
|
||||||
title={Locale.Settings.Actions.ClearAll}
|
title={Locale.Settings.Actions.ClearAll}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div> */}
|
||||||
<div className={styles["window-action-button"]}>
|
<div className={styles["window-action-button"]}>
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={<ResetIcon />}
|
icon={<ResetIcon />}
|
||||||
|
Loading…
Reference in New Issue
Block a user