From 8f0c1814e37e947d382a33afa6ec5d897c99d5af Mon Sep 17 00:00:00 2001 From: busypeoples Date: Fri, 3 Aug 2018 17:28:58 +0200 Subject: [PATCH] Update PropType definitions --- src/Slide.js | 3 ++- src/Timer.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Slide.js b/src/Slide.js index cabce0f..a0b652c 100644 --- a/src/Slide.js +++ b/src/Slide.js @@ -49,7 +49,8 @@ class Slide extends React.Component { Slide.propTypes = { index: PropTypes.number.isRequired, - px: PropTypes.array + ...space.propTypes, + ...color.propTypes } Slide.defaultProps = { diff --git a/src/Timer.js b/src/Timer.js index 200c81f..20aa14d 100644 --- a/src/Timer.js +++ b/src/Timer.js @@ -21,7 +21,9 @@ Button.propTypes = { px: PropTypes.number, py: PropTypes.number, color: PropTypes.string, - bg: PropTypes.string + bg: PropTypes.string, + ...space.propTypes, + ...color.propTypes } Button.defaultProps = {