Skip to content

Commit

Permalink
refactor: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed Nov 10, 2020
1 parent 31ac1fa commit ecce1fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions components/FormikFields/PaperInputPicker/AutoFill/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
<TouchableOpacity key={`${item}`} onPress={() => {
this.setState({ query: item });
formikProps.setFieldValue(formikKey, item);
}}
<TouchableOpacity
key={`${item}`}
onPress={() => {
this.setState({ query: item });
formikProps.setFieldValue(formikKey, item);
}}
>
<Text style={styles.itemText} key={item}>
{item}
Expand All @@ -94,8 +96,8 @@ export default class AutoFill extends Component {
{fields.length > 0 ? (
<Text style={styles.infoText}>{query}</Text>
) : (
<Text style={styles.infoText}>{placeholder}</Text>
)}
<Text style={styles.infoText}>{placeholder}</Text>
)}
</View>
</View>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ const configArray = [
validation: false
},
{
label: "identificationForm.province",
label: 'identificationForm.province',
formikKey: 'province',
value: "",
value: '',
fieldType: 'input',
validation: true
},
Expand Down Expand Up @@ -201,9 +201,9 @@ const configArray = [
validation: false
},
{
label: "identificationForm.cedulaNumber",
label: 'identificationForm.cedulaNumber',
formikKey: 'cedulaNumber',
value: "",
value: '',
fieldType: 'input',
validation: false
},
Expand Down

0 comments on commit ecce1fb

Please sign in to comment.