From 776b405781283c67d65a91d10af6f1dda288d719 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Mon, 26 Dec 2022 17:45:49 +0800 Subject: [PATCH] refactor: optional route --- src/routes/index.tsx | 5 +---- src/routes/reg/RegWithUsername.tsx | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index d29bcd11..cddd9968 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -87,10 +87,7 @@ const PageRoutes = () => { } > } /> - - } /> - } /> - + } /> { const dispatch = useDispatch(); const [username, setUsername] = useState(""); const query = new URLSearchParams(location.search); - // const githubCode = query.get("gcode"); // todo: check if query param exists const token = query.get("magic_token") as string; useEffect(() => {