Skip to content

Commit

Permalink
adding key props
Browse files Browse the repository at this point in the history
  • Loading branch information
gvn committed Sep 22, 2017
1 parent 209e91d commit f47b9f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/js/components/news/news.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default class News extends React.Component {
render() {
let blurb = (newsItem, hasHR=true) => {
return (
<div>
<div className="mb-3 news-item" key={newsItem.headline}>
<div key={newsItem.headline}>
<div className="mb-3 news-item">
<div className="d-flex align-items-center mb-3">
{ newsItem.glyph && <img src={newsItem.glyph} className="mr-2 glyph"/> }
<p className="h6-gray mb-0">{newsItem.outlet}</p>
Expand All @@ -51,7 +51,7 @@ export default class News extends React.Component {
});

return (
<div className="row mb-5">
<div className="row mb-5" key={year}>
<div className="col-md-4 d-md-flex justify-content-end">
<h2 className="h2-typeaccents-gray">{year}</h2>
</div>
Expand Down

0 comments on commit f47b9f1

Please sign in to comment.