added toastify to signin and signup

This commit is contained in:
QkoSad
2022-11-30 16:58:41 +02:00
parent 98d2d372e8
commit 19fb5256cf
6 changed files with 72 additions and 27 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import 'react-toastify/dist/ReactToastify.css';
import { toast } from 'react-toastify';
import { useState } from "react";
import { Link, useNavigate } from "react-router-dom";
import { ReactComponent as ArrowRightIcon } from "../assets/svg/keyboardArrowRightIcon.svg";
@@ -47,7 +49,7 @@ function Signup() {
navigate("/");
} catch (error) {
console.log(error);
toast.error("something went wron with the registration")
}
};
return (