Skip to content

Commit

Permalink
Add prop type checks to GamePage
Browse files Browse the repository at this point in the history
  • Loading branch information
OlafSzmidt committed Feb 22, 2018
1 parent 75f2cd3 commit 37c3501
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions game_frontend/src/containers/GamePage/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { actions } from 'features/GhibliMovies'
import Movie from 'components/Movie'
Expand All @@ -25,6 +26,11 @@ class GamePage extends Component {
}
}

GamePage.propTypes = {
movies: PropTypes.string,
fetchMovies: PropTypes.func
}

const mapStateToProps = state => {
return {
movies: state.movieReducer.movies
Expand Down

0 comments on commit 37c3501

Please sign in to comment.