Gets rid of a top level prop passed down through a tree of components

This commit is contained in:
Sofiya Tepikin
2020-03-01 14:29:29 +01:00
parent 346d7e6dad
commit aab64a433f
12 changed files with 14 additions and 26 deletions
+1 -2
View File
@@ -30,11 +30,10 @@ class Home extends Component {
static propTypes = {
navigate: PropTypes.func,
setDate: PropTypes.func,
// The following three is not being used,
// 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,
handleBackButtonPress: PropTypes.func,
}
constructor(props) {