mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-14 05:36:46 +03:00
fixed typo that forced payload never to appear
This commit is contained in:
parent
1ec3c01d5d
commit
dbbe482e8d
|
@ -15,7 +15,6 @@ const styles = {
|
||||||
marginBottom: 1
|
marginBottom: 1
|
||||||
},
|
},
|
||||||
payload: {
|
payload: {
|
||||||
backgroundColor: '#252c33',
|
|
||||||
paddingLeft: 15
|
paddingLeft: 15
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -24,7 +23,10 @@ export default class LogMonitorAction extends React.Component {
|
||||||
|
|
||||||
renderPayload(payload) {
|
renderPayload(payload) {
|
||||||
return (
|
return (
|
||||||
<div style={styles.payload}>
|
<div style={{
|
||||||
|
...styles.payload,
|
||||||
|
backgroundColor: this.props.theme.base01
|
||||||
|
}}>
|
||||||
{ Object.keys(payload).length > 0 ? <JSONTree theme={this.props.theme} keyName={'payload'} data={payload}/> : '' }
|
{ Object.keys(payload).length > 0 ? <JSONTree theme={this.props.theme} keyName={'payload'} data={payload}/> : '' }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -35,13 +37,13 @@ export default class LogMonitorAction extends React.Component {
|
||||||
return (
|
return (
|
||||||
<div style={{
|
<div style={{
|
||||||
...styles.wrapper,
|
...styles.wrapper,
|
||||||
backgroundColor: this.props.theme.base01,
|
backgroundColor: this.props.theme.base02,
|
||||||
borderTopColor: this.props.theme.base00,
|
borderTopColor: this.props.theme.base00,
|
||||||
borderBottomColor: this.props.theme.base02,
|
borderBottomColor: this.props.theme.base03,
|
||||||
...this.props.style
|
...this.props.style
|
||||||
}} onClick={this.props.onClick}>
|
}} onClick={this.props.onClick}>
|
||||||
<div style={styles.actionBar}>{type}</div>
|
<div style={styles.actionBar}>{type}</div>
|
||||||
{!this.props.collapsed ? '' : ''}
|
{!this.props.collapsed ? this.renderPayload(payload) : ''}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user