Chore/cleanup date usage

This commit is contained in:
Sofiya Tepikin
2022-08-19 15:27:20 +00:00
parent 505584f1eb
commit 6446073125
13 changed files with 156 additions and 212 deletions
+1 -9
View File
@@ -10,8 +10,6 @@ import AppText from '../common/app-text'
import AppTextInput from '../common/app-text-input'
import Segment from '../common/segment'
import { connect } from 'react-redux'
import { getDate } from '../../slices/date'
import {
getTemperatureOutOfRangeMessage,
getPreviousTemperature,
@@ -125,10 +123,4 @@ Temperature.propTypes = {
save: PropTypes.func.isRequired,
}
const mapStateToProps = (state) => {
return {
date: getDate(state),
}
}
export default connect(mapStateToProps, null)(Temperature)
export default Temperature