Skip to content

Commit

Permalink
Merge pull request #12 from msksfo/master
Browse files Browse the repository at this point in the history
Add alt text for images
  • Loading branch information
bkilrain authored Nov 4, 2018
2 parents 3f6142b + b57b2bc commit 8e03c33
Show file tree
Hide file tree
Showing 2 changed files with 250 additions and 223 deletions.
4 changes: 2 additions & 2 deletions src/VacationCard/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import "./vacationCard.css";

const VacationCard = ({ title, photos, description, price, duration, location }) => {
const VacationCard = ({ title, photos, description, price, duration, location, alt }) => {
return (
<div className="vacationCard">
<div className="vacationInformation">
Expand All @@ -13,7 +13,7 @@ const VacationCard = ({ title, photos, description, price, duration, location })
</div>

<figure className="imageWrapper">
<img className="image" src={photos[0]} alt={description} />
<img className="image" src={photos[0]} alt={alt} />
</figure>

</div>
Expand Down
Loading

0 comments on commit 8e03c33

Please sign in to comment.