From ef559a484828c03335402ad89721cd6ea812ca95 Mon Sep 17 00:00:00 2001 From: Nikolaus Graf Date: Sun, 20 Sep 2015 11:34:44 +0200 Subject: [PATCH 1/2] fix(LogMonitor): add theme to propTypes --- src/react/LogMonitor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/react/LogMonitor.js b/src/react/LogMonitor.js index d960f460..4177b5d5 100644 --- a/src/react/LogMonitor.js +++ b/src/react/LogMonitor.js @@ -54,7 +54,8 @@ export default class LogMonitor extends Component { jumpToState: PropTypes.func.isRequired, setMonitorState: PropTypes.func.isRequired, select: PropTypes.func.isRequired, - visibleOnLoad: PropTypes.bool + visibleOnLoad: PropTypes.bool, + theme: PropTypes.object }; static defaultProps = { From c5165b1bce3f45e205598eb014c55925ea5a9dd0 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Sun, 20 Sep 2015 18:25:22 +0200 Subject: [PATCH 2/2] fix(LogMonitor): allow a string for the theme prop --- src/react/LogMonitor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/react/LogMonitor.js b/src/react/LogMonitor.js index 4177b5d5..c9839de5 100644 --- a/src/react/LogMonitor.js +++ b/src/react/LogMonitor.js @@ -55,7 +55,10 @@ export default class LogMonitor extends Component { setMonitorState: PropTypes.func.isRequired, select: PropTypes.func.isRequired, visibleOnLoad: PropTypes.bool, - theme: PropTypes.object + theme: PropTypes.oneOfType([ + PropTypes.object, + PropTypes.string + ]) }; static defaultProps = {