Added propTypes
Add propTypes checking to component