Skip to content

Commit 6178bb0

Browse files
committed
Fix lint errors
1 parent e9055ee commit 6178bb0

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

app/containers/ReduxDevTools.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ export default class ReduxDevTools extends Component {
9090
} = this.props;
9191
const isRedux = options.lib === 'redux';
9292
const isConnected = !!options.connectionId;
93+
const isSliderOpen = sliderIsOpen && isConnected;
94+
const isDispathcerOpen = dispatcherIsOpen && isConnected;
9395
return (
9496
<div className="redux-container" style={containerStyle}>
9597
<div style={styles.buttonBar}>
@@ -104,18 +106,17 @@ export default class ReduxDevTools extends Component {
104106
lib={options.lib}
105107
/>
106108
<Notification />
107-
{sliderIsOpen &&
108-
isConnected && (
109-
<SliderMonitor
110-
monitor="SliderMonitor"
111-
liftedState={liftedState}
112-
dispatch={liftedDispatch}
113-
showActions={monitor === 'ChartMonitor'}
114-
style={sliderStyle}
115-
fillColor="rgb(120, 144, 156)"
116-
/>
117-
)}
118-
{dispatcherIsOpen && options.connectionId && <Dispatcher options={options} />}
109+
{isSliderOpen && (
110+
<SliderMonitor
111+
monitor="SliderMonitor"
112+
liftedState={liftedState}
113+
dispatch={liftedDispatch}
114+
showActions={monitor === 'ChartMonitor'}
115+
style={sliderStyle}
116+
fillColor="rgb(120, 144, 156)"
117+
/>
118+
)}
119+
{isDispathcerOpen && <Dispatcher options={options} />}
119120
<div className="redux-buttonbar" style={styles.buttonBar}>
120121
{isRedux && <RecordButton paused={liftedState.isPaused} />}
121122
{isRedux && <LockButton locked={liftedState.isLocked} />}

0 commit comments

Comments
 (0)