Skip to content

Commit

Permalink
correction-ok
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoSkymel committed Feb 27, 2025
1 parent f395f45 commit 91a4544
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
27 changes: 12 additions & 15 deletions src/components/card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className='card' onClick={onClick}>
<img src={image} alt={character} className='heart' />
Expand Down Expand Up @@ -47,7 +45,6 @@ export default function Card({ character, image, onAddToFavorites, onClick, onRe
<img className='remove-fav' src='/pictures/remove-fave.svg' alt='' />
</button>
)}

</div>
<div className='character-title'>
<h2>{character}</h2>
Expand Down
1 change: 0 additions & 1 deletion src/components/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default function Search() {

const [loading, setLoading] = useState(false);


const handleSubmit = (event) => {
event.preventDefault();
getCharacterData();
Expand Down

0 comments on commit 91a4544

Please sign in to comment.