mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 19:16:37 +08:00
Update home.tsx
This commit is contained in:
parent
40ca7eb8e8
commit
47d9c6bc04
@ -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={() => {
|
||||
|
Loading…
Reference in New Issue
Block a user