pond: State background

This commit is contained in:
Łukasz Magiera 2019-08-10 04:22:49 +02:00
parent 2229fae79d
commit 683a2fb993
2 changed files with 9 additions and 1 deletions

View File

@ -36,6 +36,14 @@
display: inline-block;
}
.State {
background: #f9be77;
user-select: text;
font-family: monospace;
min-width: 40em;
display: inline-block;
}
.CristalScroll {
display: flex;
min-width: 100%;

View File

@ -15,7 +15,7 @@ class State extends React.Component {
}
render() {
const content = <div>
const content = <div className="State">
<div>Balance: {this.state.Balance}</div>
<div>---</div>
<div>{Object.keys(this.state.State).map(k => <div key={k}>{k}: <span>{JSON.stringify(this.state.State[k])}</span></div>)}</div>