old people time, filter pending

This commit is contained in:
Alexander Wong
2018-04-23 14:58:14 -06:00
parent 47e5291317
commit 9a5489425e
4 changed files with 17 additions and 14 deletions
@@ -112,6 +112,7 @@ const ProviderShiftFormView = ({
handleCheckInPShift,
handleCheckOutPShift
}) => {
const OLD_PEOPLE_TIME_FORMAT = "dddd, MMMM Do YYYY, h:mm a";
const employer = getEmployerFromPrice(shift.price, user) || {};
const client = employer.client || {};
const workType = getWorkTypeFromPrice(shift.price, user) || {};
@@ -157,7 +158,7 @@ const ProviderShiftFormView = ({
{"Scheduled at " +
utc(shift.set_start, ISO_8601)
.local(false)
.format("dddd, MMMM Do YYYY, h:mm a Z")}
.format(OLD_PEOPLE_TIME_FORMAT)}
</List.Item>
<List.Item>{displayDuration}</List.Item>
<List.Item>{`Rate $${price.amount}/hour`}</List.Item>
@@ -198,13 +199,13 @@ const ProviderShiftFormView = ({
{checkedIn && (
<List.Item>
<strong>Checked In At:</strong>{" "}
{checkedIn.local(false).format("dddd, MMMM Do YYYY, h:mm a Z")}
{checkedIn.local(false).format(OLD_PEOPLE_TIME_FORMAT)}
</List.Item>
)}
{checkedOut && (
<List.Item>
<strong>Checked Out At:</strong>{" "}
{checkedOut.local(false).format("dddd, MMMM Do YYYY, h:mm a Z")}
{checkedOut.local(false).format(OLD_PEOPLE_TIME_FORMAT)}
</List.Item>
)}
</List>