| Conditions | 1 |
| Total Lines | 11 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import React, { Component } from "react" |
||
| 9 | render() { |
||
| 10 | const { title, localFile, uri, datetime_start, datetime_end } = this.props |
||
| 11 | |||
| 12 | moment.locale("nl-BE") |
||
| 13 | const momentStart = moment(datetime_start).tz("Europe/Brussels") |
||
| 14 | const momentEnd = moment(datetime_end).tz("Europe/Brussels") |
||
| 15 | const body = `Van ${momentStart.format( |
||
| 16 | "dddd DD MMMM YYYY - H:mm" |
||
| 17 | )} tot ${momentEnd.format("dddd DD MMMM - H:mm")}` |
||
| 18 | return ( |
||
| 19 | <CardImage title={title} localFile={localFile} link={uri} body={body} /> |
||
| 20 | ) |
||
| 25 |