Skip to content

Commit

Permalink
Merge pull request #86 from indigostarr/create-card
Browse files Browse the repository at this point in the history
Refactor contributor key
  • Loading branch information
domsbytes authored Oct 30, 2021
2 parents 1142b94 + a35bda5 commit 3422137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Components/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import "./Card.scss";

function Card(props) {
console.log("here");
// add file path to image in JSON and use as a filter
const filter = props.image;
const cache = {};
Expand Down
8 changes: 2 additions & 6 deletions src/cardsDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,14 @@ function CardsDisplay() {
contributor !== "parastou"
) {
return (
<div>
<Card
key={contributors[contributor].component}
{...contributors[contributor]}
/>
<div key={contributors[contributor].component}>
<Card {...contributors[contributor]} />
</div>
);
} else {
return null;
}
})}

</div>
);
}
Expand Down

0 comments on commit 3422137

Please sign in to comment.