From 91a45441c1ba50f3f4e96581df547831254fbd95 Mon Sep 17 00:00:00 2001 From: SkymelTheo Date: Thu, 27 Feb 2025 10:56:02 +0100 Subject: [PATCH] correction-ok --- src/components/card.jsx | 27 ++++++++++++--------------- src/components/search.jsx | 1 - 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/components/card.jsx b/src/components/card.jsx index 24dda08..7a58d36 100644 --- a/src/components/card.jsx +++ b/src/components/card.jsx @@ -3,22 +3,20 @@ import 'react-toastify/dist/ReactToastify.css'; import '../style/card.scss'; - const notify = () => { - toast.success('🎉 Added to Favorites !', { - position: 'top-right', - autoClose: 3000, - hideProgressBar: false, - - closeOnClick: true, - pauseOnHover: true, - draggable: true, - theme: 'light', - }); - }; - +const notify = () => { + toast.success('🎉 Added to Favorites !', { + position: 'top-right', + autoClose: 3000, + hideProgressBar: false, + + closeOnClick: true, + pauseOnHover: true, + draggable: true, + theme: 'light', + }); +}; export default function Card({ character, image, onAddToFavorites, onClick, onRemove, isFavoritePage }) { - return (
{character} @@ -47,7 +45,6 @@ export default function Card({ character, image, onAddToFavorites, onClick, onRe )} -

{character}

diff --git a/src/components/search.jsx b/src/components/search.jsx index 28f81d4..26659c5 100644 --- a/src/components/search.jsx +++ b/src/components/search.jsx @@ -14,7 +14,6 @@ export default function Search() { const [loading, setLoading] = useState(false); - const handleSubmit = (event) => { event.preventDefault(); getCharacterData();