Skip to content

Commit

Permalink
modifs apportées
Browse files Browse the repository at this point in the history
  • Loading branch information
sadjoaldi committed Feb 25, 2025
1 parent 3a58609 commit 86d6baa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/marvel-characters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export default function MarvelCharacters({ addToFavorites }) {
<Profile
characterMarvel={selectedCharacter.name}
img={`${selectedCharacter.thumbnail.path}.${selectedCharacter.thumbnail.extension}`}
title={selectedCharacter.title}
description={selectedCharacter.description}
comics={comics.filter((comic) => comic.description).slice(0, 5)}
/>
Expand Down
5 changes: 2 additions & 3 deletions src/components/profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Link } from 'react-router-dom';

import '../style/profile-page.scss';

export default function Profile({ characterMarvel, img, title, description, comics }) {
export default function Profile({ characterMarvel, img, description, comics }) {
return (
<div className='profile'>
<div className='comics-characters'>
Expand All @@ -11,14 +11,13 @@ export default function Profile({ characterMarvel, img, title, description, comi
<div className='image-containe'>
<img src={img} alt={characterMarvel} />
<h2>{characterMarvel}</h2>
<h3>{title} </h3>
</div>
<div className='bio'>
<h3>
{' '}
<strong>Bio :</strong>
</h3>
<p>{description ? description : 'Description not avalable'}</p>
<p>{description ? description : 'Description not available'}</p>
</div>
</div>
<div className='comics-section'>
Expand Down

0 comments on commit 86d6baa

Please sign in to comment.