Skip to content

Commit

Permalink
make required changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Varunram committed Apr 30, 2019
1 parent a1a2709 commit e706ea9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
22 changes: 12 additions & 10 deletions src/components/Receiver/Pages/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ class Dashboard extends Component {
? this.props.receiver.U.SecondaryWallet.PublicKey : 'mockkey';
const secondaryPkExplorerLink = "https://testnet.steexp.com/account/" + secondaryPubkey;
const swytchERCs = "0" + " ERCs";
const platformPublicKey = "****" + "GDHZLFBNYI3C3IHTTDEI6OPU2WDQD2KGD5QOSQJOBXKLSGLNYHQTFXKI".slice(-20);
const platformPkExplorerLink = "https://testnet.steexp.com/account/GDHZLFBNYI3C3IHTTDEI6OPU2WDQD2KGD5QOSQJOBXKLSGLNYHQTFXKI#transactions";
const platformBalance = "101000";
if (!receiver || !receiver.U ) {
return (
<div className="receiver-dashboard">
Expand Down Expand Up @@ -212,10 +215,10 @@ class Dashboard extends Component {
title="your energy"
items={[
{
value: receiver.TotalEnergyCP !== 0 ? receiver.TotalEnergyCP: '845kWh',
value: receiver.TotalEnergyCP !== 0 ? receiver.TotalEnergyCP: '0kWh',
desc: 'TOTAL IN CURRENT PERIOD'
},
{value: receiver.TotalEnergy !== 0 ? receiver.TotalEnergy: '10,150MWh', desc: 'ALL TIME'}
{value: receiver.TotalEnergy !== 0 ? receiver.TotalEnergy: '0MWh', desc: 'ALL TIME'}
]}
icon="solar-panel-icon"
/>
Expand All @@ -227,7 +230,7 @@ class Dashboard extends Component {
items={[
// todo: integrate this with API
{value: walletBalance, desc: 'PROJECT WALLET BALANCE'},
{value: receiver.Autoreload ? 'True' : 'False', desc: 'AUTO RE-LOAD'}
{value: receiver.Autoreload ? 'True' : 'Inactive', desc: 'AUTO RE-LOAD'}
]}
icon="wallet-icon"
/>
Expand Down Expand Up @@ -296,7 +299,7 @@ class Dashboard extends Component {
items={[
// todo: integrate this with API
{value: walletBalance, desc: 'PROJECT WALLET BALANCE'},
{value: receiver.Autoreload ? 'True' : 'False', desc: 'AUTO RE-LOAD'}
{value: receiver.Autoreload ? 'True' : 'Inactive', desc: 'AUTO RE-LOAD'}
]}
icon="wallet-icon"
/>
Expand Down Expand Up @@ -410,7 +413,7 @@ class Dashboard extends Component {
<h4 className="section-title">Project Stage & Actions</h4>
<DetailContainer
icon={IconDeveloper}
title={'Stage 4: Funded'}
title={'Stage 1: Engagement'}
type={'Connected'}
action={'You have no development action'}
/>
Expand All @@ -434,11 +437,10 @@ class Dashboard extends Component {
/>
<DetailContainer
icon={IconWallet}
title={publicKey}
titleLink={pkExplorerLink}
type={walletBalance}
action={'Escrow Account'}
actionLink={secondaryPkExplorerLink}
title={platformPublicKey}
titleLink={platformPkExplorerLink}
type={platformBalance}
action={'Escrow Funds'}
/>
<DetailContainer
icon={IconContractor}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Receiver/Pages/Dashboard/rwanda.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export const rwanda = {
loc: 'Rusizi District, Western Province, Rwanda',
category: "MUNI BOND",
description: 'This community in Rwanda has no access to electricity yet shows a growing local economy. This microgrid project, developed a collaboration with the Rwandan Green Fund (FONERWA), Yale and MIT, aims to serve 250 homes with solar electricity and electric appliances (e.g. lamps, phone chargers, radio, and battery), as well as a school, the town infirmary led by a team of doctors without borders, and the town hall. This is a community-led cooperative with international backing',
description: 'Installation of a proof of concept 1kW solar in the admin building of the Pasto public shool. System has internet connected devices that can securely connect to a blockchain smart contract',
description: 'This is a community-led cooperative with international backing. 20% first loss funds secured through Rwandan Green Fund. Currently doing engineering due diligence for development quotes',
ownerName: 'Eric Mbeba',
donated: '230\'000',
total: '230\'000.00',
donated: '101\'000',
total: '101\'000.00',
return: '130%',
benefit: '30',
maturity: '2025',
investBy: 'Aug 2018',
investBy: 'Aug 2019',
},
};

0 comments on commit e706ea9

Please sign in to comment.