From d8d538e39aa2310907054dee503541f9d046847a Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Mon, 25 Nov 2024 22:41:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/base.tsx | 76 ++++++++++++++++++----------- src/ui/Hero/index.tsx | 4 +- src/ui/Login/Login.tsx | 123 ++++++++++++++++++++++++++++++++++++++++------- src/views/Home/index.tsx | 3 +- 4 files changed, 157 insertions(+), 49 deletions(-) diff --git a/src/layout/base.tsx b/src/layout/base.tsx index 0cb898d..c25efe3 100644 --- a/src/layout/base.tsx +++ b/src/layout/base.tsx @@ -28,8 +28,8 @@ const ContentWrapper = styled.div` function BaseLayout(props: PageProps) { const [isOpen, setIsOpen] = useState(false) const [isOpenAbout, setIsOpenAbout] = useState(false) - const [isOpenRegister, setIsOpenRegister] = useState(false) - const [isOpenLogin, setIsOpenLogin] = useState(false) + const [isOpenAuth, setIsOpenAuth] = useState(false) + const [isRegister, setIsRegister] = useState(false) const router = useHistory() @@ -81,12 +81,11 @@ function BaseLayout(props: PageProps) { - + + + + ) +} diff --git a/src/views/Home/index.tsx b/src/views/Home/index.tsx index 6a0b248..69720ae 100644 --- a/src/views/Home/index.tsx +++ b/src/views/Home/index.tsx @@ -9,8 +9,7 @@ interface IProps { children: ReactNode } -export default withPage(function Project({ }: IProps) { - +export default withPage(function Project({}: IProps) { const onClick = useCallback(() => { toast.success("Wow so easy !") // Fly.invoke().request<{a: number}>({