Reorder cred explorer columns

Now the node description is first.

Test plan: Observe that the behavior is unchanged, except for the
columnar order.

Paired with @wchargin
This commit is contained in:
Dandelion Mané 2018-05-10 15:35:47 -07:00
parent 0dae0c995f
commit 6714d4b95e
1 changed files with 2 additions and 2 deletions

View File

@ -129,9 +129,9 @@ export class PagerankTable extends React.Component<Props, State> {
<table> <table>
<thead> <thead>
<tr> <tr>
<th>Node</th>
<th>Score</th> <th>Score</th>
<th>LogScore</th> <th>LogScore</th>
<th>Node</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -162,9 +162,9 @@ class RecursiveTable extends React.Component<RTProps, RTState> {
const score = pagerankResult.get(address).probability; const score = pagerankResult.get(address).probability;
return ( return (
<tr key={JSON.stringify(address)}> <tr key={JSON.stringify(address)}>
<td>{nodeDescription(graph, address)}</td>
<td>{(score * 100).toPrecision(3)}</td> <td>{(score * 100).toPrecision(3)}</td>
<td>{Math.log(score).toPrecision(3)}</td> <td>{Math.log(score).toPrecision(3)}</td>
<td>{nodeDescription(graph, address)}</td>
</tr> </tr>
); );
} }