MatchDisp.js 622 B

1234567891011121314151617181920
  1. import React from 'react'
  2. import { date2s, time2s } from '../../helpers.js'
  3. class MatchDisp extends React.Component {
  4. render () {
  5. const match = this.props.match
  6. return (
  7. <tr>
  8. <td>{match.Ort || <strong>Kein Platz zugeteilt</strong>}</td>
  9. <td>{match.Datum ? date2s(match.Datum) : <strong>Kein Datum zugeteilt</strong>}</td>
  10. <td>{match.Datum ? time2s(match.Datum) : <strong>Keine Zeit zugeteilt</strong>}</td>
  11. <td>{match.Konkurrenz}</td>
  12. <td>{match.Spieler1}</td>
  13. <td>{match.Spieler2}</td>
  14. </tr>
  15. )
  16. }
  17. }
  18. export default MatchDisp