ndious/the.12.gy

View on GitHub
src/components/development-list.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react'
import PropTypes from 'prop-types'
import { Grid, Row, Col } from 'react-bootstrap'

import Development from './development.jsx'
import Definition from './../definitions/development-definition'

const DevelopmentList = ({developments}) => (
  <Grid>
    <Row>
      <Col xs={12}>
        {developments.map((development, key) =>
          <Development
            key={key}
            {...development}
          />
        )}
      </Col>
    </Row>
  </Grid>
);



DevelopmentList.propTypes = {
  developments: PropTypes.arrayOf(PropTypes.shape(Definition).isRequired).isRequired
}

export default DevelopmentList