mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-25 10:16:48 +08:00
Update home.tsx
This commit is contained in:
@@ -75,7 +75,7 @@ function useSwitchTheme() {
|
||||
}
|
||||
|
||||
const useHasHydrated = () => {
|
||||
const [hasHydrated, setHasHydrated] = useState<boolean>(false);
|
||||
const [hasHydrated, setHasHydrated] = useState < boolean > (false);
|
||||
|
||||
useEffect(() => {
|
||||
setHasHydrated(true);
|
||||
@@ -119,8 +119,7 @@ function _Home() {
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`${
|
||||
config.tightBorder && !isMobileScreen()
|
||||
className={`${config.tightBorder && !isMobileScreen()
|
||||
? styles["tight-container"]
|
||||
: styles.container
|
||||
}`}
|
||||
@@ -143,11 +142,14 @@ function _Home() {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div className={styles["sidebar-logo-container"]}>
|
||||
<div className={styles["sidebar-logo"]}>
|
||||
<ChatGptIcon />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div
|
||||
className={styles["sidebar-body"]}
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user