Revert "Merge branch 'chore/cleanup-date-usage' into 'main'"

This reverts merge request !492
This commit is contained in:
Sofiya Tepikin
2022-08-20 14:03:43 +00:00
parent 84f72d74bf
commit 1ada7a0cde
13 changed files with 213 additions and 157 deletions
+9 -2
View File
@@ -7,6 +7,8 @@ import AppText from '../common/app-text'
import DripIcon from '../../assets/drip-icons'
import SymptomEditView from './symptom-edit-view'
import { connect } from 'react-redux'
import { getDate } from '../../slices/date'
import { isDateInFuture } from '../helpers/cycle-day'
import { Colors, Sizes, Spacing } from '../../styles'
@@ -41,7 +43,6 @@ const SymptomBox = ({
<>
{isSymptomEdited && (
<SymptomEditView
date={date}
symptom={symptom}
symptomData={symptomData}
onClose={() => setEditedSymptom('')}
@@ -127,4 +128,10 @@ const styles = StyleSheet.create({
},
})
export default SymptomBox
const mapStateToProps = (state) => {
return {
date: getDate(state),
}
}
export default connect(mapStateToProps, null)(SymptomBox)