Skip to content

Commit e706ea9

Browse files
committed
make required changes
1 parent a1a2709 commit e706ea9

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

src/components/Receiver/Pages/Dashboard/Dashboard.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ class Dashboard extends Component {
175175
? this.props.receiver.U.SecondaryWallet.PublicKey : 'mockkey';
176176
const secondaryPkExplorerLink = "https://testnet.steexp.com/account/" + secondaryPubkey;
177177
const swytchERCs = "0" + " ERCs";
178+
const platformPublicKey = "****" + "GDHZLFBNYI3C3IHTTDEI6OPU2WDQD2KGD5QOSQJOBXKLSGLNYHQTFXKI".slice(-20);
179+
const platformPkExplorerLink = "https://testnet.steexp.com/account/GDHZLFBNYI3C3IHTTDEI6OPU2WDQD2KGD5QOSQJOBXKLSGLNYHQTFXKI#transactions";
180+
const platformBalance = "101000";
178181
if (!receiver || !receiver.U ) {
179182
return (
180183
<div className="receiver-dashboard">
@@ -212,10 +215,10 @@ class Dashboard extends Component {
212215
title="your energy"
213216
items={[
214217
{
215-
value: receiver.TotalEnergyCP !== 0 ? receiver.TotalEnergyCP: '845kWh',
218+
value: receiver.TotalEnergyCP !== 0 ? receiver.TotalEnergyCP: '0kWh',
216219
desc: 'TOTAL IN CURRENT PERIOD'
217220
},
218-
{value: receiver.TotalEnergy !== 0 ? receiver.TotalEnergy: '10,150MWh', desc: 'ALL TIME'}
221+
{value: receiver.TotalEnergy !== 0 ? receiver.TotalEnergy: '0MWh', desc: 'ALL TIME'}
219222
]}
220223
icon="solar-panel-icon"
221224
/>
@@ -227,7 +230,7 @@ class Dashboard extends Component {
227230
items={[
228231
// todo: integrate this with API
229232
{value: walletBalance, desc: 'PROJECT WALLET BALANCE'},
230-
{value: receiver.Autoreload ? 'True' : 'False', desc: 'AUTO RE-LOAD'}
233+
{value: receiver.Autoreload ? 'True' : 'Inactive', desc: 'AUTO RE-LOAD'}
231234
]}
232235
icon="wallet-icon"
233236
/>
@@ -296,7 +299,7 @@ class Dashboard extends Component {
296299
items={[
297300
// todo: integrate this with API
298301
{value: walletBalance, desc: 'PROJECT WALLET BALANCE'},
299-
{value: receiver.Autoreload ? 'True' : 'False', desc: 'AUTO RE-LOAD'}
302+
{value: receiver.Autoreload ? 'True' : 'Inactive', desc: 'AUTO RE-LOAD'}
300303
]}
301304
icon="wallet-icon"
302305
/>
@@ -410,7 +413,7 @@ class Dashboard extends Component {
410413
<h4 className="section-title">Project Stage & Actions</h4>
411414
<DetailContainer
412415
icon={IconDeveloper}
413-
title={'Stage 4: Funded'}
416+
title={'Stage 1: Engagement'}
414417
type={'Connected'}
415418
action={'You have no development action'}
416419
/>
@@ -434,11 +437,10 @@ class Dashboard extends Component {
434437
/>
435438
<DetailContainer
436439
icon={IconWallet}
437-
title={publicKey}
438-
titleLink={pkExplorerLink}
439-
type={walletBalance}
440-
action={'Escrow Account'}
441-
actionLink={secondaryPkExplorerLink}
440+
title={platformPublicKey}
441+
titleLink={platformPkExplorerLink}
442+
type={platformBalance}
443+
action={'Escrow Funds'}
442444
/>
443445
<DetailContainer
444446
icon={IconContractor}

src/components/Receiver/Pages/Dashboard/rwanda.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export const rwanda = {
1616
loc: 'Rusizi District, Western Province, Rwanda',
1717
category: "MUNI BOND",
1818
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',
19-
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',
19+
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',
2020
ownerName: 'Eric Mbeba',
21-
donated: '230\'000',
22-
total: '230\'000.00',
21+
donated: '101\'000',
22+
total: '101\'000.00',
2323
return: '130%',
2424
benefit: '30',
2525
maturity: '2025',
26-
investBy: 'Aug 2018',
26+
investBy: 'Aug 2019',
2727
},
2828
};

0 commit comments

Comments
 (0)