Event and task description: show the text preformatted.

We previously had it in a div, which was dropping newlines.
master
Tom Hacohen 6 years ago
parent 47c259d803
commit a32e2c9019

@ -30,7 +30,7 @@ class Event extends React.PureComponent {
<div><u>{this.props.item.location}</u></div>
</PimItemHeader>
<div style={style.content}>
<div>{this.props.item.description}</div>
<pre>{this.props.item.description}</pre>
{(this.props.item.attendees.length > 0) && (
<div>Attendees: {this.props.item.attendees.map((x) => (x.getFirstValue())).join(', ')}</div>)}
</div>

@ -37,7 +37,7 @@ class Task extends React.PureComponent {
<div><u>{this.props.item.location}</u></div>
</PimItemHeader>
<div style={style.content}>
<div>{this.props.item.description}</div>
<pre>{this.props.item.description}</pre>
{(this.props.item.attendees.length > 0) && (
<div>Attendees: {this.props.item.attendees.map((x) => (x.getFirstValue())).join(', ')}</div>)}
</div>

Loading…
Cancel
Save