forked from sagnikghoshcr7/Berkshire-Black-Diamond
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsummary.jsx
More file actions
33 lines (31 loc) · 767 Bytes
/
summary.jsx
File metadata and controls
33 lines (31 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React, { Component } from "react";
import "./summary.css";
class Summary extends Component {
render() {
return (
<div className="summary-box">
<table className="summary-table">
<tbody>
<tr>
<td>No of Stocks:</td>
<td>{this.props.stocks.length}</td>
</tr>
<tr>
<td>Equities:</td>
<td>$100,000</td>
</tr>
<tr>
<td>Cash:</td>
<td>$50,000</td>
</tr>
<tr>
<td>Total Portfolio:</td>
<td>$150,000</td>
</tr>
</tbody>
</table>
</div>
);
}
}
export default Summary;