Chore/remove date usage
This commit is contained in:
+1
-9
@@ -5,7 +5,6 @@ import moment from 'moment'
|
||||
|
||||
import { connect } from 'react-redux'
|
||||
import { navigate } from '../slices/navigation'
|
||||
import { getDate, setDate } from '../slices/date'
|
||||
|
||||
import AppText from './common/app-text'
|
||||
import Button from './common/button'
|
||||
@@ -137,16 +136,9 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
})
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
return {
|
||||
date: getDate(state),
|
||||
}
|
||||
}
|
||||
|
||||
const mapDispatchToProps = (dispatch) => {
|
||||
return {
|
||||
navigate: (page) => dispatch(navigate(page)),
|
||||
setDate: (date) => dispatch(setDate(date)),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,4 +147,4 @@ Home.propTypes = {
|
||||
setDate: PropTypes.func,
|
||||
}
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(Home)
|
||||
export default connect(null, mapDispatchToProps)(Home)
|
||||
|
||||
Reference in New Issue
Block a user