AG-420 Improve React implementation

This commit is contained in:
Sean Landsman
2017-05-19 11:28:58 +01:00
parent 8677118a27
commit a438cb6169
9 changed files with 293 additions and 3049 deletions

View File

@@ -6,41 +6,25 @@ export default class extends Component {
}
render() {
let containerStyle = {
display: "inline-block"
};
let priceStyle = {
fontSize: "2.6em",
fontWeight: "bold",
marginRight: 10
};
let minorStyle = {
fontSize: 11,
color: "#6F6F6F"
};
let negativeSwingStyle = {
color: "#d14836",
marginRight: 5
};
let positiveSwingStyle = {
color: "#093",
marginRight: 5
};
return (
<div>
<div id="ref_304466804484872_elt">
May 17, 6:17am GMT-4
<div style={minorStyle}>
<span>NASDAQ</span>
<div>Currency in USD</div>
if (!this.props.timestamp) {
return null;
} else {
return (
<div>
<div>
{this.props.timestamp}
<div style={minorStyle}>
<span>{this.props.exchangeName}</span>
<div>Currency in USD</div>
</div>
</div>
</div>
</div>
);
);
}
}
}