Skip to content
Snippets Groups Projects
Commit 407bc2e5 authored by Sofiya Tepikin's avatar Sofiya Tepikin
Browse files

Adds propTypes definition

parent aab64a43
No related branches found
No related tags found
No related merge requests found
import React, { Component } from 'react' import React, { Component } from 'react'
import { ScrollView, View } from 'react-native' import { ScrollView, View } from 'react-native'
import PropTypes from 'prop-types'
import { connect } from 'react-redux' import { connect } from 'react-redux'
import { getDate, setDate } from '../../slices/date' import { getDate, setDate } from '../../slices/date'
...@@ -16,6 +17,16 @@ import { getCycleDay } from '../../db' ...@@ -16,6 +17,16 @@ import { getCycleDay } from '../../db'
import styles from '../../styles' import styles from '../../styles'
class CycleDayOverView extends Component { class CycleDayOverView extends Component {
static propTypes = {
navigate: PropTypes.func,
setDate: PropTypes.func,
// The following are not being used,
// we could see if it's possible to not pass them from the <App />
cycleDay: PropTypes.object,
date: PropTypes.string,
}
constructor(props) { constructor(props) {
super(props) super(props)
this.state = { this.state = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment