|
|
@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
|
|
|
|
|
|
|
|
|
import PimItemHeader from './PimItemHeader';
|
|
|
|
import PimItemHeader from './PimItemHeader';
|
|
|
|
|
|
|
|
|
|
|
|
import { formatDate } from '../helpers';
|
|
|
|
import { formatDate, formatOurTimezoneOffset } from '../helpers';
|
|
|
|
|
|
|
|
|
|
|
|
import { TaskType } from '../pim-types';
|
|
|
|
import { TaskType } from '../pim-types';
|
|
|
|
|
|
|
|
|
|
|
@ -30,10 +30,10 @@ class Task extends React.PureComponent {
|
|
|
|
<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)} {timezone && <small>({timezone})</small>}</div>
|
|
|
|
<div>Start: {formatDate(item.startDate)} {timezone && <small>({formatOurTimezoneOffset()})</small>}</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{item.dueDate &&
|
|
|
|
{item.dueDate &&
|
|
|
|
<div>Due: {formatDate(item.dueDate)} {timezone && <small>({timezone})</small>}</div>
|
|
|
|
<div>Due: {formatDate(item.dueDate)} {timezone && <small>({formatOurTimezoneOffset()})</small>}</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<div><u>{this.props.item.location}</u></div>
|
|
|
|
<div><u>{this.props.item.location}</u></div>
|
|
|
|