From 0cb1fa7cbb62878a4fdf1d51943808bf8afe909d Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Mon, 18 Sep 2017 09:57:38 -0400 Subject: [PATCH] Fix eslint error from prop types --- src/containers/recording-step.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/containers/recording-step.jsx b/src/containers/recording-step.jsx index d1fc3302b..4e82e6ec8 100644 --- a/src/containers/recording-step.jsx +++ b/src/containers/recording-step.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import PropTypes from 'prop-types'; import bindAll from 'lodash.bindall'; import RecordingStepComponent from '../components/record-modal/recording-step.jsx'; import AudioRecorder from '../lib/audio/audio-recorder.js'; @@ -66,6 +67,10 @@ class RecordingStep extends React.Component { } } -RecordingStep.propTypes = RecordingStepComponent.propTypes; +RecordingStep.propTypes = { + onRecord: PropTypes.func.isRequired, + onStopRecording: PropTypes.func.isRequired, + recording: PropTypes.bool +}; export default RecordingStep;