Skip to content

Commit

Permalink
solve linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MozamelJawad committed Sep 6, 2023
1 parent 53fde11 commit 94e38c6
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/components/Rockets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function Rockets() {

if (error) {
return (
<div className='error'>
Error:
{ error }
<div className="error">
Error:
{ error }
</div>
);
}
Expand All @@ -33,15 +33,20 @@ function Rockets() {
<ul className="rocketsList">
{
rockets.map((rocket) => {
const { id, name, description, image, reserved} = rocket;
const {
id, name, description, image, reserved,
} = rocket;
return (
<li key={id}>
<img className="rocketImg" src={image} alt="" />
<div className="rocketDetails">
<h2 className="rocketName">{name}</h2>
<p className="rocketDesc">
{reserved && <button type="button" className="reseved-btn"> Reserved</button>} &nbsp;
{ description }</p>
{reserved && <button type="button" className="reseved-btn"> Reserved</button>}
{' '}
&nbsp;
{ description }
</p>

<button
type="button"
Expand Down

0 comments on commit 94e38c6

Please sign in to comment.