fix: sign in redirect in sign up

This commit is contained in:
Tristan Yang
2022-08-24 21:00:23 +08:00
parent c22d7ed659
commit 85a68dcd3c
+1 -3
View File
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { useNavigate } from "react-router-dom";
const StyledSignInLink = styled.p`
text-align: center;
@@ -22,9 +21,8 @@ const StyledSignInLink = styled.p`
`;
export default function SignInLink() {
const navigate = useNavigate();
const handleSignIn = () => {
navigate("/login");
location.href = "/#/login";
};
return (
<StyledSignInLink>