MeasurementRun.js 805 B

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