diff --git a/pages/auth/signup/index.js b/pages/auth/signup/index.js deleted file mode 100644 index 534efec5..00000000 --- a/pages/auth/signup/index.js +++ /dev/null @@ -1,194 +0,0 @@ -import Image from 'next/image' -import Link from 'next/link' -import Head from 'next/head' -import { useState } from 'react' -import { useForm } from 'react-hook-form' -import { toast } from 'react-toastify' -import useAuth from '../../../hooks/useAuth' -import { withPublic } from '../../../hooks/route' -import { Button } from '@nextui-org/react' -import { FcGoogle } from 'react-icons/fc' -import { GrGithub } from 'react-icons/gr' -import { useRouter } from 'next/router' - -function signUpPage() { - const { signup, loginGoogle, loginGithub } = useAuth() - const [showpass, setShowPass] = useState(false) - const router = useRouter() - - const { register, handleSubmit } = useForm() - const onSignUpSubmit = async (data) => { - try { - await signup(data) - const destination = router.query.from || '/courses' - router.push(destination) - } catch (error) { - toast.error(error.message) - } - } - const onSignUpError = (errors, e) => { - toast.error(errors, e, { - position: 'top-right', - autoClose: 5000, - hideProgressBar: false, - closeOnClick: true, - pauseOnHover: true, - draggable: true, - progress: undefined, - }) - } - - return ( - <> - - Cadastro - WEB3DEV - -
-
-
- -

web3dev

-
-
-

- Registre sua conta -

-

- Já tem uma conta?{' '} - - - Entre agora! - - -

-
-
- - -
-
- -
- - -
setShowPass(!showpass)} - className="absolute right-0 mt-2 mr-3 cursor-pointer" - > -
- - - -
-
- - - - - - -
-
-
-
-
- -
-
- -
-
-

OU

-
-
-
- - -
-
-
-
- - ) -} - -export default withPublic(signUpPage)