All unwanted pop-ups removed

This commit was merged in pull request #27.
This commit is contained in:
Chukwumdiebube
2023-02-02 10:42:03 +01:00
parent a3af650036
commit b45be9fafd
7 changed files with 11 additions and 22 deletions
+1 -3
View File
@@ -1,6 +1,6 @@
import React, { useState } from "react";
import { Link } from "react-router-dom";
import { toast } from "react-toastify";
// import { toast } from "react-toastify";
import localImgLoad from "../../lib/localImgLoad";
import Icons from "../Helpers/Icons";
@@ -14,10 +14,8 @@ export default function ProductCardStyleTwo({
const favoriteHandler = () => {
if (!addFavorite) {
setValue(true);
toast.success("Added to Favorite List");
} else {
setValue(false);
toast.warn("Remove to Favorite List");
}
};
return (