IO-899 Refactor ccc paginated query
This commit is contained in:
@@ -6,7 +6,6 @@ import { useTranslation } from "react-i18next";
|
||||
import { Link, useHistory, useLocation } from "react-router-dom";
|
||||
import { DateTimeFormatter } from "../../utils/DateFormatter";
|
||||
import { alphaSort } from "../../utils/sorters";
|
||||
import TimeTicketsDatesSelector from "../ticket-tickets-dates-selector/time-tickets-dates-selector.component";
|
||||
|
||||
export default function ContractsList({ loading, contracts, refetch, total }) {
|
||||
const [state, setState] = useState({
|
||||
@@ -126,11 +125,6 @@ export default function ContractsList({ loading, contracts, refetch, total }) {
|
||||
<Card
|
||||
extra={
|
||||
<Space wrap>
|
||||
<Button onClick={() => refetch()}>
|
||||
<SyncOutlined />
|
||||
</Button>
|
||||
|
||||
<TimeTicketsDatesSelector />
|
||||
{search.search && (
|
||||
<>
|
||||
<Typography.Title level={4}>
|
||||
@@ -146,6 +140,9 @@ export default function ContractsList({ loading, contracts, refetch, total }) {
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
<Button onClick={() => refetch()}>
|
||||
<SyncOutlined />
|
||||
</Button>
|
||||
<Input.Search
|
||||
placeholder={search.searh || t("general.labels.search")}
|
||||
onSearch={(value) => {
|
||||
|
||||
Reference in New Issue
Block a user