diff --git a/src/app/credExplorer/pagerankTable.js b/src/app/credExplorer/pagerankTable.js index 76f1cbc..fb60f2e 100644 --- a/src/app/credExplorer/pagerankTable.js +++ b/src/app/credExplorer/pagerankTable.js @@ -149,7 +149,7 @@ export class PagerankTable extends React.Component { } } -type RTState = {}; +type RTState = {expanded: boolean}; type RTProps = {| +address: Address, +graph: Graph, @@ -157,12 +157,30 @@ type RTProps = {| |}; class RecursiveTable extends React.Component { + constructor() { + super(); + this.state = {expanded: false}; + } + render() { const {address, graph, pagerankResult} = this.props; + const {expanded} = this.state; const score = pagerankResult.get(address).probability; return ( - {nodeDescription(graph, address)} + + + {nodeDescription(graph, address)} + {(score * 100).toPrecision(3)} {Math.log(score).toPrecision(3)}