Skip to content

Commit

Permalink
Revert "added logic of redirecting user to home page on register"
Browse files Browse the repository at this point in the history
This reverts commit ac1d8ab��--abort
--abort
  • Loading branch information
angadnagar committed Oct 10, 2024
1 parent ac1d8ab commit 06fd114
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pages/Registration.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { useState } from "react";
import { Link, useNavigate } from "react-router-dom";
import { Link } from "react-router-dom";
import logo from "../assets/Images/logo.png";

export default function Registration() {
const navigate=useNavigate();

const [form, setForm] = useState({
name: "",
email: "",
Expand Down Expand Up @@ -46,8 +44,7 @@ export default function Registration() {
setErrors(validationErrors);

if (Object.keys(validationErrors).length === 0) {
// alert("Form Submitted successfully");
navigate("/home");
alert("Form Submitted successfully");
setForm({
name: "",
email: "",
Expand Down

0 comments on commit 06fd114

Please sign in to comment.