mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
sidebar
This commit is contained in:
parent
6a6a2490ed
commit
14795c50c0
@ -149,9 +149,13 @@ export function SideBar(props: { className?: string }) {
|
||||
[isMobileScreen],
|
||||
);
|
||||
|
||||
const usageStatsComponent = showUsageStats && <UsageStats onClose={() => setShowUsageStats(false)} />;
|
||||
|
||||
useHotKey();
|
||||
|
||||
return (
|
||||
<>
|
||||
{usageStatsComponent} {/* This is where the UsageStats component gets rendered */}
|
||||
<div
|
||||
className={`${styles.sidebar} ${props.className} ${
|
||||
shouldNarrow && styles["narrow-sidebar"]
|
||||
@ -166,7 +170,7 @@ export function SideBar(props: { className?: string }) {
|
||||
AdEx<b>GPT</b> - via API
|
||||
</div>
|
||||
<div className={styles["sidebar-sub-title"]}>
|
||||
secure local UI for
|
||||
secure local UI for
|
||||
<span
|
||||
className={styles["api-link"]} // You might need to define this style
|
||||
onClick={toggleUsageStats}
|
||||
@ -282,5 +286,7 @@ export function SideBar(props: { className?: string }) {
|
||||
<DragIcon />
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user