|
|
|
@ -119,10 +119,12 @@ const ProviderShiftsView = ({ |
|
|
|
|
handlePaginationChange, |
|
|
|
|
handleChangePShiftApproval |
|
|
|
|
}) => { |
|
|
|
|
const OLD_PEOPLE_TIME_FORMAT = "dddd, MMMM Do YYYY, h:mm a"; |
|
|
|
|
const { count = 0, results = [] } = pShiftRequestSuccess; |
|
|
|
|
const approvedOptions = [ |
|
|
|
|
{ text: "Approved", value: true }, |
|
|
|
|
{ text: "Rejected", value: false }, |
|
|
|
|
{ text: "Pending", value: "" }, |
|
|
|
|
{ text: "All", value: null } |
|
|
|
|
]; |
|
|
|
|
return ( |
|
|
|
@ -133,7 +135,7 @@ const ProviderShiftsView = ({ |
|
|
|
|
{"Filter by Approval: "} |
|
|
|
|
<Dropdown |
|
|
|
|
inline |
|
|
|
|
placeholder="All" |
|
|
|
|
placeholder={approvalFilter === null ? `All` : `Pending`} |
|
|
|
|
options={approvedOptions} |
|
|
|
|
onChange={handleChangeApprovalFilter} |
|
|
|
|
value={approvalFilter} |
|
|
|
@ -200,7 +202,7 @@ const ProviderShiftsView = ({ |
|
|
|
|
{"At " + |
|
|
|
|
utc(result.set_start, ISO_8601) |
|
|
|
|
.local(false) |
|
|
|
|
.format("dddd, MMMM Do YYYY, h:mm a Z")} |
|
|
|
|
.format(OLD_PEOPLE_TIME_FORMAT)} |
|
|
|
|
</Item.Meta> |
|
|
|
|
<Item.Meta>{displayDuration}</Item.Meta> |
|
|
|
|
<Item.Meta>{`Rate $${price.amount}/hour`}</Item.Meta> |
|
|
|
@ -214,9 +216,7 @@ const ProviderShiftsView = ({ |
|
|
|
|
{checkedIn && ( |
|
|
|
|
<Item.Meta> |
|
|
|
|
{"Checked in at: " + |
|
|
|
|
checkedIn |
|
|
|
|
.local(false) |
|
|
|
|
.format("dddd, MMMM Do YYYY, h:mm a Z")} |
|
|
|
|
checkedIn.local(false).format(OLD_PEOPLE_TIME_FORMAT)} |
|
|
|
|
</Item.Meta> |
|
|
|
|
)} |
|
|
|
|
{checkedOut && ( |
|
|
|
@ -224,7 +224,7 @@ const ProviderShiftsView = ({ |
|
|
|
|
{"Checked out at: " + |
|
|
|
|
checkedOut |
|
|
|
|
.local(false) |
|
|
|
|
.format("dddd, MMMM Do YYYY, h:mm a Z")} |
|
|
|
|
.format(OLD_PEOPLE_TIME_FORMAT)} |
|
|
|
|
</Item.Meta> |
|
|
|
|
)} |
|
|
|
|
</Item.Content> |
|
|
|
|