|
@@ -1,7 +1,7 @@
|
|
import React from "react";
|
|
import React from "react";
|
|
import { Form, Table} from "react-bootstrap";
|
|
import { Form, Table} from "react-bootstrap";
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
-
|
|
|
|
|
|
+import { numberWithCommas } from "../../lib/util"
|
|
import { alternativeBackendApis } from "../../config"
|
|
import { alternativeBackendApis } from "../../config"
|
|
|
|
|
|
import { Transaction } from "../../types";
|
|
import { Transaction } from "../../types";
|
|
@@ -48,10 +48,11 @@ class Transactions extends React.Component<IProps, IState> {
|
|
const { address, transactions } = this.state;
|
|
const { address, transactions } = this.state;
|
|
|
|
|
|
return (
|
|
return (
|
|
- <div className="box">
|
|
|
|
|
|
+ <div className="box" style={{textAlign: "left"}}>
|
|
<h3>Transactions</h3>
|
|
<h3>Transactions</h3>
|
|
<Form>
|
|
<Form>
|
|
<Form.Group className="mb-3" controlId="formBasicEmail">
|
|
<Form.Group className="mb-3" controlId="formBasicEmail">
|
|
|
|
+ <Form.Label>Wallet address</Form.Label>
|
|
<Form.Control type="address" placeholder="Wallet account" onChange={(e) => this.accountTxFilterChanged(e.target.value)} value={address}/>
|
|
<Form.Control type="address" placeholder="Wallet account" onChange={(e) => this.accountTxFilterChanged(e.target.value)} value={address}/>
|
|
<Form.Text className="text-muted">
|
|
<Form.Text className="text-muted">
|
|
48 character string starting with 5
|
|
48 character string starting with 5
|
|
@@ -60,7 +61,7 @@ class Transactions extends React.Component<IProps, IState> {
|
|
</Form>
|
|
</Form>
|
|
<>
|
|
<>
|
|
{ (!transactions || transactions.length === 0) ? <h4>No records found</h4> :
|
|
{ (!transactions || transactions.length === 0) ? <h4>No records found</h4> :
|
|
- <Table striped bordered hover size="sm">
|
|
|
|
|
|
+ <Table striped bordered hover size="sm" variant="dark">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<th>tJOY</th>
|
|
<th>tJOY</th>
|
|
@@ -71,8 +72,8 @@ class Transactions extends React.Component<IProps, IState> {
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
{transactions.map(tx => (
|
|
{transactions.map(tx => (
|
|
- <tr key={tx.id}>
|
|
|
|
- <td>{tx.amount}</td>
|
|
|
|
|
|
+ <tr key={tx.id} style={{textAlign: "left"}}>
|
|
|
|
+ <td>{numberWithCommas(tx.amount)}</td>
|
|
<td>{tx.from}</td>
|
|
<td>{tx.from}</td>
|
|
<td>{tx.to}</td>
|
|
<td>{tx.to}</td>
|
|
<td>{tx.block}</td>
|
|
<td>{tx.block}</td>
|