diff --git a/src/pages/Signup.jsx b/src/pages/Signup.jsx index e5ee4fd..90d81dc 100644 --- a/src/pages/Signup.jsx +++ b/src/pages/Signup.jsx @@ -1,18 +1,18 @@ -import React, { useState } from 'react'; -import { Link, useNavigate } from 'react-router-dom'; -import { UserAuth } from '../context/AuthContext'; +import React, { useState } from "react"; +import { Link, useNavigate } from "react-router-dom"; +import { UserAuth } from "../context/AuthContext"; const Signup = () => { - const [email, setEmail] = useState(''); - const [password, setPassword] = useState(''); + const [email, setEmail] = useState(""); + const [password, setPassword] = useState(""); const { user, signUp } = UserAuth(); - const navigate = useNavigate() + const navigate = useNavigate(); const handleSubmit = async (e) => { e.preventDefault(); try { await signUp(email, password); - navigate('/') + navigate("/"); } catch (error) { console.log(error); } @@ -20,50 +20,50 @@ const Signup = () => { return ( <> -