diff --git a/src/components/stroke-width-indicator.jsx b/src/components/stroke-width-indicator.jsx index daa51dbf..3b249830 100644 --- a/src/components/stroke-width-indicator.jsx +++ b/src/components/stroke-width-indicator.jsx @@ -14,7 +14,6 @@ const StrokeWidthIndicatorComponent = props => ( small max={MAX_STROKE_WIDTH} min="0" - tabIndex="1" type="number" value={props.strokeWidth} onSubmit={props.onChangeStrokeWidth} diff --git a/src/containers/stroke-width-indicator.jsx b/src/containers/stroke-width-indicator.jsx index 3d29071f..5e5fa967 100644 --- a/src/containers/stroke-width-indicator.jsx +++ b/src/containers/stroke-width-indicator.jsx @@ -1,26 +1,12 @@ -import PropTypes from 'prop-types'; -import React from 'react'; import {connect} from 'react-redux'; import {changeStrokeWidth} from '../reducers/stroke-width'; import StrokeWidthIndicatorComponent from '../components/stroke-width-indicator.jsx'; -const StrokeWidthIndicator = props => ( - -); - -StrokeWidthIndicator.propTypes = { - handleChangeStrokeWidth: PropTypes.func.isRequired, - strokeWidth: PropTypes.string.isRequired -}; - const mapStateToProps = state => ({ strokeWidth: state.scratchPaint.color.strokeWidth }); const mapDispatchToProps = dispatch => ({ - handleChangeStrokeWidth: strokeWidth => { + onChangeStrokeWidth: strokeWidth => { dispatch(changeStrokeWidth(strokeWidth)); } }); @@ -28,4 +14,4 @@ const mapDispatchToProps = dispatch => ({ export default connect( mapStateToProps, mapDispatchToProps -)(StrokeWidthIndicator); +)(StrokeWidthIndicatorComponent);