MeasurementRun.js 780 B

12345678910111213141516171819202122232425262728
  1. import Event from './Event'
  2. import Comment from './Comment'
  3. import Measurement from './Measurement'
  4. import Setup from './Setup'
  5. const MeasurementRun = props => {
  6. const {
  7. name, operators, location, temperature,
  8. startTime, endTime, log, comments,
  9. measurements, setup
  10. } = props.data
  11. return (
  12. <div>
  13. <h2>{name}</h2>
  14. <p>{operators.map(operator => operator.name).join(', ')}</p>
  15. <p>{location}</p>
  16. <p>{temperature}</p>
  17. <p>{startTime}</p>
  18. <p>{endTime}</p>
  19. <Setup setup={setup} />
  20. {log.map(event => <Event event={event} />)}
  21. {comments.map(comment => <Comment comment={comment} />)}
  22. {measurements.map(measurement => <Measurement measurement={measurement} />)}
  23. </div>
  24. )
  25. }
  26. export default MeasurementRun