From 637e3bb8d0dfc37a9a7f9813c9c2c9f1d93dfd62 Mon Sep 17 00:00:00 2001 From: DD Date: Tue, 12 Sep 2017 17:43:26 -0400 Subject: [PATCH] correct stroke width type" --- src/components/stroke-width-indicator.jsx | 2 +- src/containers/brush-mode.jsx | 2 +- src/containers/line-mode.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/stroke-width-indicator.jsx b/src/components/stroke-width-indicator.jsx index 3b249830..6b5774ed 100644 --- a/src/components/stroke-width-indicator.jsx +++ b/src/components/stroke-width-indicator.jsx @@ -23,7 +23,7 @@ const StrokeWidthIndicatorComponent = props => ( StrokeWidthIndicatorComponent.propTypes = { onChangeStrokeWidth: PropTypes.func.isRequired, - strokeWidth: PropTypes.string.isRequired + strokeWidth: PropTypes.number.isRequired }; export default StrokeWidthIndicatorComponent; diff --git a/src/containers/brush-mode.jsx b/src/containers/brush-mode.jsx index 3142529b..bf1b372a 100644 --- a/src/containers/brush-mode.jsx +++ b/src/containers/brush-mode.jsx @@ -80,7 +80,7 @@ BrushMode.propTypes = { colorState: PropTypes.shape({ fillColor: PropTypes.string.isRequired, strokeColor: PropTypes.string.isRequired, - strokeWidth: PropTypes.string.isRequired + strokeWidth: PropTypes.number.isRequired }).isRequired, handleMouseDown: PropTypes.func.isRequired, isBrushModeActive: PropTypes.bool.isRequired, diff --git a/src/containers/line-mode.jsx b/src/containers/line-mode.jsx index d1f00b0c..35e47b53 100644 --- a/src/containers/line-mode.jsx +++ b/src/containers/line-mode.jsx @@ -272,7 +272,7 @@ LineMode.propTypes = { colorState: PropTypes.shape({ fillColor: PropTypes.string.isRequired, strokeColor: PropTypes.string.isRequired, - strokeWidth: PropTypes.string.isRequired + strokeWidth: PropTypes.number.isRequired }).isRequired, handleMouseDown: PropTypes.func.isRequired, isLineModeActive: PropTypes.bool.isRequired,