- Changes required by ESLint.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-04-05 10:21:31 -04:00
parent 167d5bd89a
commit ef698529d7

View File

@@ -3,16 +3,25 @@ import { Select, Space, Spin, Tag } from "antd";
import _ from "lodash"; import _ from "lodash";
import React, {forwardRef, useEffect, useState} from "react"; import React, {forwardRef, useEffect, useState} from "react";
import {useTranslation} from "react-i18next"; import {useTranslation} from "react-i18next";
import { SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE, SEARCH_JOBS_FOR_AUTOCOMPLETE } from "../../graphql/jobs.queries"; import {
SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE,
SEARCH_JOBS_FOR_AUTOCOMPLETE
} from "../../graphql/jobs.queries";
import AlertComponent from "../alert/alert.component"; import AlertComponent from "../alert/alert.component";
import {OwnerNameDisplayFunction} from "../owner-name-display/owner-name-display.component"; import {OwnerNameDisplayFunction} from "../owner-name-display/owner-name-display.component";
import { SearchOutlined } from "@ant-design/icons";
import {LoadingOutlined} from "@ant-design/icons"; import {LoadingOutlined} from "@ant-design/icons";
const {Option} = Select; const {Option} = Select;
const JobSearchSelect = ( const JobSearchSelect = (
{ disabled, convertedOnly = false, notInvoiced = false, notExported = true, clm_no = false, ...restProps }, {
disabled,
convertedOnly = false,
notInvoiced = false,
notExported = true,
clm_no = false,
...restProps
},
ref ref
) => { ) => {
const {t} = useTranslation(); const {t} = useTranslation();
@@ -75,7 +84,7 @@ const JobSearchSelect = (
filterOption={false} filterOption={false}
onSearch={handleSearch} onSearch={handleSearch}
//loading={loading || idLoading} //loading={loading || idLoading}
suffixIcon={loading && <Spin />} suffixIcon={(loading || idLoading) && <Spin/>}
notFoundContent={loading ? <LoadingOutlined/> : null} notFoundContent={loading ? <LoadingOutlined/> : null}
{...restProps} {...restProps}
> >