From a32e2c9019808906e64c3629e7688187d8e4d562 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 14 Feb 2019 21:29:49 +0000 Subject: [PATCH] Event and task description: show the text preformatted. We previously had it in a div, which was dropping newlines. --- src/components/Event.tsx | 2 +- src/components/Task.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Event.tsx b/src/components/Event.tsx index 865fda8..3dd623b 100644 --- a/src/components/Event.tsx +++ b/src/components/Event.tsx @@ -30,7 +30,7 @@ class Event extends React.PureComponent {
{this.props.item.location}
-
{this.props.item.description}
+
{this.props.item.description}
{(this.props.item.attendees.length > 0) && (
Attendees: {this.props.item.attendees.map((x) => (x.getFirstValue())).join(', ')}
)}
diff --git a/src/components/Task.tsx b/src/components/Task.tsx index 069a55d..6c88c7d 100644 --- a/src/components/Task.tsx +++ b/src/components/Task.tsx @@ -37,7 +37,7 @@ class Task extends React.PureComponent {
{this.props.item.location}
-
{this.props.item.description}
+
{this.props.item.description}
{(this.props.item.attendees.length > 0) && (
Attendees: {this.props.item.attendees.map((x) => (x.getFirstValue())).join(', ')}
)}