old people time, filter pending
This commit is contained in:
@@ -119,8 +119,10 @@ const ClientShiftsView = ({
|
||||
const approvedOptions = [
|
||||
{ text: "Approved", value: true },
|
||||
{ text: "Rejected", value: false },
|
||||
{ text: "Pending", value: "" },
|
||||
{ text: "All", value: null }
|
||||
];
|
||||
const OLD_PEOPLE_TIME_FORMAT = "dddd, MMMM Do YYYY, h:mm a ";
|
||||
return (
|
||||
<Container>
|
||||
<Header>Shifts</Header>
|
||||
@@ -140,7 +142,7 @@ const ClientShiftsView = ({
|
||||
{"Filter by Approval: "}
|
||||
<Dropdown
|
||||
inline
|
||||
placeholder="All"
|
||||
placeholder={approvalFilter === null ? `All` : `Pending`}
|
||||
options={approvedOptions}
|
||||
onChange={handleChangeApprovalFilter}
|
||||
value={approvalFilter}
|
||||
@@ -207,7 +209,7 @@ const ClientShiftsView = ({
|
||||
{"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>
|
||||
@@ -265,14 +267,14 @@ const ClientShiftsView = ({
|
||||
{"Checked in at " +
|
||||
checkedIn
|
||||
.local(false)
|
||||
.format("dddd, MMMM Do YYYY, h:mm a Z")}
|
||||
.format(OLD_PEOPLE_TIME_FORMAT)}
|
||||
</List.Item>
|
||||
{checkedOut && (
|
||||
<List.Item>
|
||||
{"Checked out at " +
|
||||
checkedOut
|
||||
.local(false)
|
||||
.format("dddd, MMMM Do YYYY, h:mm a Z")}
|
||||
.format(OLD_PEOPLE_TIME_FORMAT)}
|
||||
</List.Item>
|
||||
)}
|
||||
</List>
|
||||
|
||||
Reference in New Issue
Block a user