Lint rule react prop types addition

This commit is contained in:
Maria Zadnepryanets
2020-03-11 20:19:45 +00:00
committed by Sofiya Tepikin
parent 8444d466db
commit 47379d7a1e
26 changed files with 292 additions and 184 deletions
@@ -77,15 +77,16 @@ class SymptomView extends Component {
render() {
const { symptom, date, goBack } = this.props
const { shouldShowDelete } = this.state
const handleDelete = shouldShowDelete ? this.showConfirmationAlert : null
return (
<View style={{flex: 1}}>
<Header
title={headerTitles[symptom]}
subtitle={formatDate(date)}
handleBack={goBack}
handleDelete={
this.state.shouldShowDelete && this.showConfirmationAlert
}
handleDelete={handleDelete}
/>
<View flex={1}>
<ScrollView style={styles.page}>