From bc732eec5d9c49f636783449e1d6ee907aa36455 Mon Sep 17 00:00:00 2001 From: laststranger Date: Wed, 14 Feb 2024 16:48:45 +0800 Subject: [PATCH] fix eslint problem --- src/pages/Profile/hooks/useProfileInfo.ts | 4 ++-- src/pages/main/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Profile/hooks/useProfileInfo.ts b/src/pages/Profile/hooks/useProfileInfo.ts index f54d17e..4ac836b 100644 --- a/src/pages/Profile/hooks/useProfileInfo.ts +++ b/src/pages/Profile/hooks/useProfileInfo.ts @@ -18,9 +18,9 @@ type ProfileData = { languages: string[]; }; -const useProfileInfo = (id: string) => { +const useProfileInfo = (id: string): [ProfileData, boolean] => { const [data, setData] = useState(null); - const [loading, setLoading] = useState(true); + const [loading, setLoading] = useState(true); useEffect(() => { request diff --git a/src/pages/main/index.tsx b/src/pages/main/index.tsx index 2ddb0da..3e35bd6 100644 --- a/src/pages/main/index.tsx +++ b/src/pages/main/index.tsx @@ -24,7 +24,7 @@ const Index = () => { > ,