From ecce1fbb4dc96004f4f3b622cfd256c657415299 Mon Sep 17 00:00:00 2001 From: Hope Tambala Date: Mon, 9 Nov 2020 22:23:40 -0500 Subject: [PATCH] refactor: linting --- .../PaperInputPicker/AutoFill/index.js | 14 ++++++++------ .../Forms/IdentificationForm/config/config.js | 8 ++++---- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/components/FormikFields/PaperInputPicker/AutoFill/index.js b/components/FormikFields/PaperInputPicker/AutoFill/index.js index 72b3113be..39f513596 100644 --- a/components/FormikFields/PaperInputPicker/AutoFill/index.js +++ b/components/FormikFields/PaperInputPicker/AutoFill/index.js @@ -79,10 +79,12 @@ export default class AutoFill extends Component { }} renderItem={({ item }) => ( // you can change the view you want to show in suggestion from here - { - this.setState({ query: item }); - formikProps.setFieldValue(formikKey, item); - }} + { + this.setState({ query: item }); + formikProps.setFieldValue(formikKey, item); + }} > {item} @@ -94,8 +96,8 @@ export default class AutoFill extends Component { {fields.length > 0 ? ( {query} ) : ( - {placeholder} - )} + {placeholder} + )} ); diff --git a/domains/DataCollection/Forms/IdentificationForm/config/config.js b/domains/DataCollection/Forms/IdentificationForm/config/config.js index b15df8802..0e0140e8b 100644 --- a/domains/DataCollection/Forms/IdentificationForm/config/config.js +++ b/domains/DataCollection/Forms/IdentificationForm/config/config.js @@ -168,9 +168,9 @@ const configArray = [ validation: false }, { - label: "identificationForm.province", + label: 'identificationForm.province', formikKey: 'province', - value: "", + value: '', fieldType: 'input', validation: true }, @@ -201,9 +201,9 @@ const configArray = [ validation: false }, { - label: "identificationForm.cedulaNumber", + label: 'identificationForm.cedulaNumber', formikKey: 'cedulaNumber', - value: "", + value: '', fieldType: 'input', validation: false },