Skip to content

Commit

Permalink
Merge pull request decaporg#71 from mki-skt/fix-Testimonials
Browse files Browse the repository at this point in the history
Fix testimonials of key prop error
  • Loading branch information
AustinGreen authored May 5, 2018
2 parents ed0a64a + 0d26569 commit c0950b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"lodash-webpack-plugin": "^0.11.4",
"prop-types": "^15.6.0",
"react": "^16.2.0",
"react-helmet": "^5.2.0"
"react-helmet": "^5.2.0",
"uuid": "^3.2.1"
},
"keywords": [
"gatsby"
Expand Down
3 changes: 2 additions & 1 deletion src/components/Testimonials.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from 'react'
import PropTypes from 'prop-types'
import { v4 } from 'uuid'

const Testimonials = ({ testimonials }) => (
<div>
{testimonials.map(testimonial => (
<article className="message">
<article key={v4()} className="message">
<div className="message-body">
{testimonial.quote}
<br />
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10664,7 +10664,7 @@ uuid@^2.0.1:
version "2.0.3"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a"

uuid@^3.0.0, uuid@^3.0.1, uuid@^3.1.0:
uuid@^3.0.0, uuid@^3.0.1, uuid@^3.1.0, uuid@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14"

Expand Down

0 comments on commit c0950b3

Please sign in to comment.