Skip to content

Commit

Permalink
text update
Browse files Browse the repository at this point in the history
  • Loading branch information
vibern0 committed Dec 5, 2018
1 parent 7b41982 commit fe20f7c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
4 changes: 2 additions & 2 deletions client/src/pages/CompanyReport/CompanyReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class CompanyReport extends Component {

<li className="ReportCard__Item">
<p>Emissions Reported:</p>
<p>18 Emissions</p>
<p>18 Reports</p>
</li>

<li className="ReportCard__Item">
Expand Down Expand Up @@ -185,7 +185,7 @@ class CompanyReport extends Component {
<li key={ce.tons} className="Company__Card">
<p className="Company__CardTitle">456</p>
<p className="Company__CardTitle">48 Suppliers</p>
<p className="Company__CardTitle">18 Emissions</p>
<p className="Company__CardTitle">18 Reports</p>
<p className="Company__CardTitle">
{ce.tons}
{' '}
Expand Down
18 changes: 16 additions & 2 deletions client/src/pages/EmissionsReport/EmissionsReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,34 @@ class EmissionsReport extends Component {
</form>
</li>

<li className="Company__Card Company__Card-fiveColumns">
<li className="Company__Card">
<p className="Company__CardTitle">456</p>
<p className="Company__CardTitle">48 Suppliers</p>
<p className="Company__CardTitle">18 Emissions</p>
<p className="Company__CardTitle">25 Tons of Carbon</p>
<p className="Company__CardTitle">11 Nov 2018</p>
<form onSubmit={this.handleViewCase}>
<input
type="submit"
className="btn btn__Success btn__Center"
value="VIEW"
/>
</form>
</li>

<li className="Company__Card Company__Card-fiveColumns">
<li className="Company__Card">
<p className="Company__CardTitle">456</p>
<p className="Company__CardTitle">48 Suppliers</p>
<p className="Company__CardTitle">18 Emissions</p>
<p className="Company__CardTitle">25 Tons of Carbon</p>
<p className="Company__CardTitle">11 Nov 2018</p>
<form onSubmit={this.handleViewCase}>
<input
type="submit"
className="btn btn__Success btn__Center"
value="VIEW"
/>
</form>
</li>

</ul>)
Expand Down
8 changes: 4 additions & 4 deletions client/src/pages/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class Main extends Component {
// eslint-disable-next-line no-await-in-loop
companies.push({
suppliers: (companyData[0] * 1) * 10,
emissions: (companyData[1] * 1),
tons: (companyData[1] * 1),
emissions: (companyData[2] * 1),
tons: 20000 + Math.floor(Math.random() * Math.floor(100)) * 1000,
name: (web3.utils.toUtf8(companyData[3])),
id: c,
});
Expand Down Expand Up @@ -94,7 +94,7 @@ class Main extends Component {
<li className="Company__Card Company__Card--Black">
<p className="Company__CardTitle Company__CardTitle--Bold">Company Name</p>
<p className="Company__CardTitle Company__CardTitle--Bold">Suppliers</p>
<p className="Company__CardTitle Company__CardTitle--Bold">Emissions</p>
<p className="Company__CardTitle Company__CardTitle--Bold">Reports</p>
<p className="Company__CardTitle Company__CardTitle--Bold">Tonnes of Carbon</p>
<p className="Company__CardTitle Company__CardTitle--Bold">Date</p>
</li>
Expand All @@ -110,7 +110,7 @@ class Main extends Component {
<p className="Company__CardTitle">
{c.emissions}
{' '}
Emissions
Reports
</p>
<p className="Company__CardTitle">
{c.tons}
Expand Down

0 comments on commit fe20f7c

Please sign in to comment.