|
@@ -1,4 +1,5 @@
|
|
|
import theme from '../styles/theme'
|
|
|
+import PropTypes from 'prop-types'
|
|
|
|
|
|
import TrainingBlock from './trainingBlock'
|
|
|
|
|
@@ -112,4 +113,12 @@ const Training = props => (
|
|
|
</article>
|
|
|
)
|
|
|
|
|
|
+Training.propTypes = {
|
|
|
+ title: PropTypes.string.isRequired,
|
|
|
+ type: PropTypes.shape({
|
|
|
+ name: PropTypes.string.isRequired,
|
|
|
+ description: PropTypes.string
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
export default Training
|