old people time, filter pending
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user