Load screenshots from array

merge-requests/101/head
Jayasanka 6 years ago
parent 9c9790f2ed
commit e59ed1d807

@ -31,15 +31,13 @@ class ReleaseView extends React.Component {
</Row> </Row>
<br/> <br/>
<Row> <Row>
<Col lg={6} md={8} xs={8} className="release-screenshot"> {release.screenshots.map((screenshotUrl)=>{
<img src={release.screenshotPath1}/> return (
</Col> <Col key={"col-"+screenshotUrl} lg={6} md={8} xs={8} className="release-screenshot">
<Col lg={6} md={8} xs={8} className="release-screenshot"> <img key={screenshotUrl} src={screenshotUrl}/>
<img src={release.screenshotPath2}/> </Col>
</Col> )
<Col lg={6} md={8} xs={8} className="release-screenshot"> })}
<img src={release.screenshotPath3}/>
</Col>
</Row> </Row>
</div> </div>
); );

Loading…
Cancel
Save