mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-28 16:59:04 +02:00
initial commit
This commit is contained in:
15
src/pages/auth/signUp.tsx
Normal file
15
src/pages/auth/signUp.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useRouter } from "next/router";
|
||||
import React, { useContext } from "react";
|
||||
import AuthForm from "../../components/auth/AuthForm";
|
||||
import { IsSignedInContext } from "../../utils/auth.util";
|
||||
|
||||
const SignUp = () => {
|
||||
const isSignedIn = useContext(IsSignedInContext);
|
||||
const router = useRouter();
|
||||
if (isSignedIn) {
|
||||
router.replace("/");
|
||||
} else {
|
||||
return <AuthForm mode="signUp" />;
|
||||
}
|
||||
};
|
||||
export default SignUp;
|
||||
Reference in New Issue
Block a user