|
|
@ -24,14 +24,16 @@ class Task extends React.PureComponent {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const timezone = this.props.item.timezone;
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<React.Fragment>
|
|
|
|
<React.Fragment>
|
|
|
|
<PimItemHeader text={this.props.item.summary} backgroundColor={this.props.item.color}>
|
|
|
|
<PimItemHeader text={this.props.item.summary} backgroundColor={this.props.item.color}>
|
|
|
|
{ item.startDate &&
|
|
|
|
{ item.startDate &&
|
|
|
|
<div>Start: {formatDate(item.startDate)}</div>
|
|
|
|
<div>Start: {formatDate(item.startDate)} { timezone && <small>({timezone})</small>}</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{ item.dueDate &&
|
|
|
|
{ item.dueDate &&
|
|
|
|
<div>Due: {formatDate(item.dueDate)}</div>
|
|
|
|
<div>Due: {formatDate(item.dueDate)} { timezone && <small>({timezone})</small>}</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<div><u>{this.props.item.location}</u></div>
|
|
|
|
<div><u>{this.props.item.location}</u></div>
|
|
|
|