mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-25 22:27:24 +10:00
fix : Testimonials of key prop error
This commit is contained in:
parent
8fc632144b
commit
2ad73a09f0
1 changed files with 2 additions and 2 deletions
|
|
@ -3,8 +3,8 @@ import PropTypes from 'prop-types'
|
|||
|
||||
const Testimonials = ({ testimonials }) => (
|
||||
<div>
|
||||
{testimonials.map(testimonial => (
|
||||
<article className="message">
|
||||
{testimonials.map((testimonial,index) => (
|
||||
<article key={index} className="message">
|
||||
<div className="message-body">
|
||||
{testimonial.quote}
|
||||
<br />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue