From de6637e4915376b007269e18a2f09ca6b4632d2f Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Thu, 10 May 2018 14:50:08 -0400 Subject: [PATCH] Fix linting --- src/containers/list-monitor.jsx | 6 +++--- src/containers/monitor.jsx | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/containers/list-monitor.jsx b/src/containers/list-monitor.jsx index a4655f702..a20d60156 100644 --- a/src/containers/list-monitor.jsx +++ b/src/containers/list-monitor.jsx @@ -165,14 +165,14 @@ class ListMonitor extends React.Component { } ListMonitor.propTypes = { + height: PropTypes.number, + id: PropTypes.string, + targetId: PropTypes.string, value: PropTypes.oneOfType([ PropTypes.number, PropTypes.string ]), vm: PropTypes.instanceOf(VM), - targetId: PropTypes.string, - id: PropTypes.string, - height: PropTypes.number, width: PropTypes.number, x: PropTypes.number, y: PropTypes.number diff --git a/src/containers/monitor.jsx b/src/containers/monitor.jsx index c39b56302..b2480a412 100644 --- a/src/containers/monitor.jsx +++ b/src/containers/monitor.jsx @@ -107,13 +107,13 @@ class Monitor extends React.Component { max={this.props.max} min={this.props.min} mode={this.state.mode} + targetId={this.props.targetId} + width={this.props.width} onDragEnd={this.handleDragEnd} onNextMode={this.handleNextMode} onSetModeToDefault={this.handleSetModeToDefault} onSetModeToLarge={this.handleSetModeToLarge} onSetModeToSlider={showSliderOption ? this.handleSetModeToSlider : null} - targetId={this.props.targetId} - width={this.props.width} /> ); } @@ -136,6 +136,7 @@ Monitor.propTypes = { removeMonitorRect: PropTypes.func.isRequired, resizeMonitorRect: PropTypes.func.isRequired, spriteName: PropTypes.string, // eslint-disable-line react/no-unused-prop-types + targetId: PropTypes.string, value: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, -- GitLab