Commit a60ed4eb authored by Florent Chehab's avatar Florent Chehab

fix

parent ed3bf819
......@@ -7,6 +7,7 @@ import PropTypes from "prop-types";
import CreateIcon from "@material-ui/icons/Create";
import Button from "@material-ui/core/Button/index";
import PhotoSizeSelectActualIcon from "@material-ui/icons/PhotoSizeSelectActual";
import shuffle from "lodash/shuffle";
/**
* Component to display a cover image gallery with custom styling done in the ./CoverGallery.scss file
......@@ -28,7 +29,7 @@ class CoverGallery extends Component {
:
<AwesomeSlider cssModule={styles}>
{
picturesSrc.map(src => <div data-src={src}/>)
shuffle(picturesSrc).map(src => <div key={src} data-src={src}/>)
}
<div data-src="https://www.stcc.ch/wp-content/uploads/2017/11/epfl.jpg"/>
</AwesomeSlider>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment