update files
This commit is contained in:
@@ -8,10 +8,7 @@ import { connect } from "react-redux";
|
||||
import { SEARCH_JOBS_FOR_AUTOCOMPLETE } from "../../graphql/jobs.queries";
|
||||
import ErrorDisplay from "../error-display/error-display.component";
|
||||
import _ from "lodash";
|
||||
import { useCallback } from "react";
|
||||
import { useRef } from "react";
|
||||
import { useEffect } from "react";
|
||||
|
||||
import { useCallback,useRef, useEffect } from "react";
|
||||
|
||||
const useIsMounted = () => {
|
||||
const isMounted = useRef(false);
|
||||
@@ -38,7 +35,7 @@ export function JobSearchAndSelectModal(props) {
|
||||
const jobSrchCurrentValue =
|
||||
props?.currentValue !== undefined
|
||||
? props.currentValue
|
||||
: { id: "temp", ro_number: "No Selection" };
|
||||
: { id:"temp", ro_number:t("selectjobid.labels.noselection") };
|
||||
const jobSrchOnSetCurrentValue =
|
||||
props?.onSetCurrentValue !== undefined
|
||||
? props.onSetCurrentValue
|
||||
@@ -84,7 +81,6 @@ export function JobSearchAndSelectModal(props) {
|
||||
const inputSearch = useRef(null);
|
||||
const isMounted = useIsMounted();
|
||||
const setFocus = useCallback(() => {
|
||||
console.log("setFocus called",inputSearch);
|
||||
if (inputSearch.current) {
|
||||
inputSearch.current.focus();
|
||||
}
|
||||
@@ -183,7 +179,7 @@ export function JobSearchAndSelectModal(props) {
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<Text>No Data</Text>
|
||||
<Text>{t("selectjobid.labels.nodata")}</Text>
|
||||
</View>
|
||||
}
|
||||
/>
|
||||
@@ -205,7 +201,7 @@ export function JobSearchAndSelectModal(props) {
|
||||
>
|
||||
{jobSrchCurrentValue?.id
|
||||
? jobSrchCurrentValue?.id === "temp"
|
||||
? t("mediabrowser.labels.temporarystorage")
|
||||
? t("selectjobid.labels.noselection")
|
||||
: `${
|
||||
jobSrchCurrentValue.ro_number
|
||||
? `${jobSrchCurrentValue.ro_number} - `
|
||||
|
||||
Reference in New Issue
Block a user