Chore/remove date usage
This commit is contained in:
@@ -45,6 +45,7 @@ class CycleChart extends Component {
|
||||
static propTypes = {
|
||||
navigate: PropTypes.func,
|
||||
end: PropTypes.bool,
|
||||
setDate: PropTypes.func,
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
@@ -98,6 +99,7 @@ class CycleChart extends Component {
|
||||
renderColumn = ({ item, index }) => {
|
||||
return (
|
||||
<DayColumn
|
||||
setDate={this.props.setDate}
|
||||
dateString={item}
|
||||
index={index}
|
||||
navigate={this.props.navigate}
|
||||
|
||||
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types'
|
||||
import { TouchableOpacity } from 'react-native'
|
||||
import { connect } from 'react-redux'
|
||||
|
||||
import { setDate } from '../../slices/date'
|
||||
import { navigate } from '../../slices/navigation'
|
||||
|
||||
import { getCycleDay } from '../../db'
|
||||
@@ -131,7 +130,6 @@ class DayColumn extends Component {
|
||||
|
||||
const mapDispatchToProps = (dispatch) => {
|
||||
return {
|
||||
setDate: (date) => dispatch(setDate(date)),
|
||||
navigate: (page) => dispatch(navigate(page)),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user