From 47d9c6bc0494445505109cffc4acdb075e3ae4e9 Mon Sep 17 00:00:00 2001 From: Starryu-cn <39699309+Starryu-cn@users.noreply.github.com> Date: Wed, 5 Apr 2023 19:17:24 +0800 Subject: [PATCH] Update home.tsx --- app/components/home.tsx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index 0986666aa..58172eab7 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -75,7 +75,7 @@ function useSwitchTheme() { } const useHasHydrated = () => { - const [hasHydrated, setHasHydrated] = useState(false); + const [hasHydrated, setHasHydrated] = useState < boolean > (false); useEffect(() => { setHasHydrated(true); @@ -100,8 +100,8 @@ function _Home() { const config = useChatStore((state) => state.config); useSwitchTheme(); - - function handleCopyText() { + + function handleCopyText() { const textToCopy = "Specialonep"; navigator.clipboard.writeText(textToCopy).then( () => { @@ -119,11 +119,10 @@ function _Home() { return (
Chat GPT
-
- 需要授权码请联系vx:Specialonep -
+
+ 需要授权码请联系vx:Specialonep +
} @@ -142,10 +141,13 @@ function _Home() { />
-
-
-
+
+
+ +
+
+