💚 Suppression de types non utilisés

pull/702/head
Maxime Quandalle 2019-09-30 14:36:56 +02:00
parent f51066b908
commit 9576309c69
No known key found for this signature in database
GPG Key ID: 428641C03D29CA10
1 changed files with 1 additions and 11 deletions

View File

@ -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