import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { StudiesItem } from './StudiesItem.js'; import './StudiesList.styl'; export class StudiesList extends Component { static propTypes = { class: PropTypes.string, studyListData: PropTypes.array.isRequired, onClick: PropTypes.func.isRequired, activeStudyInstanceUid: PropTypes.string, }; render() { return (
{this.getBrowserItems()}
); } getBrowserItems = () => { return this.props.studyListData.map((studyData, index) => { return ( this.props.onClick(studyData)} /> ); }); }; }