Skip to content

Commit

Permalink
frontend changes for rwanda project
Browse files Browse the repository at this point in the history
  • Loading branch information
Varunram committed Apr 29, 2019
1 parent a879d7e commit 7cbafb4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Terms extends Component {
</div>
</div>
</div>
<div className="col-12 security-note">
<div className="col-12 security-note" style={{marginTop: this.props.data.Terms.length == 9 ? '100px': '5px'}} >
<div className="security-title">security note</div>
<div className="security-text">
These terms are for demonstration purpose only. The current project does not correspond to an actual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,23 @@ const TermsTable = props => {
}
}

var uniqueArray = [];
var dup = false;
for (var i = 0 ; i < props.data.length ; i ++ ) {
for (var j = 0 ; j < uniqueArray.length ; j ++) {
if (props.data[i].Variable == uniqueArray[j].Variable) {
// duplicate, delete
dup = true;
}
}
if (!dup) {
uniqueArray[i] = props.data[i];
}
}

items = props.data.map(item => {
return (
<tr key={item.Value}>
<tr key={item.Variable}>
<td>
<div className="text-with-icon">
<a href="#" title={item.Variable === "Maturity"? "Maturity is the period by which your bonds mature":
Expand All @@ -27,7 +41,8 @@ const TermsTable = props => {
item.Variable === "PPA Tariff" || item.Variable === "PPA Avg. Tariff" ? "The tariff dicatated by the power purchase agreement agreed upon":
item.Variable === "Return (TEY)" || item.Variable === "Return" || item.Variable === "Exp. Return" ? "The return associated with the project":
item.Variable === "Ownership Flip"? "The approximate date when the ownership flip is slated to take place assuming constant payments" :
"Default tooltip"
item.Variable === "Offtaker1" || item.Variable === "Offtaker2" || item.Variable === "Offtaker2" || item.Variable === "Offtaker4" ? "An offtaker is a person who is responsible for the property described. This entity belongs to a bigger family of recipients" :
"Default tooltip which should display info about the stuff defined in the terms table"
}>
{item.Variable} <FontAwesomeIcon icon={faInfoCircle} size="xs"/>
</a>
Expand Down

0 comments on commit 7cbafb4

Please sign in to comment.