mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 01:26:48 +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
|
||||
},
|
||||
payload: {
|
||||
backgroundColor: '#252c33',
|
||||
paddingLeft: 15
|
||||
}
|
||||
};
|
||||
|
@ -24,7 +23,10 @@ export default class LogMonitorAction extends React.Component {
|
|||
|
||||
renderPayload(payload) {
|
||||
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}/> : '' }
|
||||
</div>
|
||||
);
|
||||
|
@ -35,13 +37,13 @@ export default class LogMonitorAction extends React.Component {
|
|||
return (
|
||||
<div style={{
|
||||
...styles.wrapper,
|
||||
backgroundColor: this.props.theme.base01,
|
||||
backgroundColor: this.props.theme.base02,
|
||||
borderTopColor: this.props.theme.base00,
|
||||
borderBottomColor: this.props.theme.base02,
|
||||
borderBottomColor: this.props.theme.base03,
|
||||
...this.props.style
|
||||
}} onClick={this.props.onClick}>
|
||||
<div style={styles.actionBar}>{type}</div>
|
||||
{!this.props.collapsed ? '' : ''}
|
||||
{!this.props.collapsed ? this.renderPayload(payload) : ''}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user