Skip to content

Commit

Permalink
Tidied up components
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnajman committed Apr 17, 2024
1 parent 5d0cbf2 commit 278121b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/components/Card.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
import PropTypes from "prop-types"

function Card({
// openSpots,
// src,
// alt,
// rating,
// likes,
// location,
// title,
// price,
// unit,
card,
}) {
function Card({ card }) {
let badgeText
if (card.openSpots === 0) {
badgeText = "SOLD OUT"
Expand All @@ -25,6 +14,8 @@ function Card({
<img
src={`/scrimba-airbnb/cards/${card.coverImg}`}
alt={card.imageAlt}
width="176"
loading="lazy"
/>
</div>
<div className="info">
Expand Down

0 comments on commit 278121b

Please sign in to comment.