💚 Suppression de types non utilisés
parent
f51066b908
commit
9576309c69
|
@ -13,19 +13,8 @@ import ReactSelect from 'react-select'
|
|||
import 'react-select/dist/react-select.css'
|
||||
import './Find.css'
|
||||
import { CompanyDetails as Company } from './YourCompany'
|
||||
import type { SitePaths } from 'Components/utils/withSitePaths'
|
||||
import type { TFunction } from 'react-i18next'
|
||||
import type { RouterHistory } from 'react-router'
|
||||
|
||||
type State = {
|
||||
input: ?{ [string]: string }
|
||||
}
|
||||
type OwnProps = {}
|
||||
type Props = {
|
||||
history: RouterHistory,
|
||||
t: TFunction,
|
||||
sitePaths: SitePaths
|
||||
}
|
||||
|
||||
const isSIREN = (input: string) => input.match(/^ *([\d] *){9}$/)
|
||||
const isSIRET = (input: string) => input.match(/^ *([\d] *){14}$/)
|
||||
|
@ -66,6 +55,7 @@ async function getOptions(input: string) {
|
|||
}
|
||||
return { options: etablissements }
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
"Erreur dans la recherche d'entreprise à partir du SIREN / nom",
|
||||
error
|
||||
|
|
Loading…
Reference in New Issue