Improve the UI #2

This commit is contained in:
Andrew Revinsky (DART)
2016-08-26 20:32:10 +03:00
parent 1e7234166a
commit fb97767a06
2 changed files with 6 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ export class TransfersTable extends React.Component {
if (loading) {
return (<h2><Spinner ref="spinner" loaded={false} /> Loading..</h2>);
}
if (Object.keys(errors).length) {
return (<div className="text-danger">Errors..</div>);
}
@@ -33,8 +34,8 @@ export class TransfersTable extends React.Component {
<td><AccountInfo accountId={ fromAccountId } /></td>
<td><AccountInfo accountId={ toAccountId } /></td>
<td><Money amount={ amount } /></td>
<td>{ description || 'N/a'}</td>
<td>{ status || 'N/a' }</td>
<td>{ description || '[No description]'}</td>
<td>{ status || '&mdash;' }</td>
</tr>)) : (<tr>
<td colSpan={6}>No transfers for this account just yet.</td>
</tr>);
@@ -45,8 +46,8 @@ export class TransfersTable extends React.Component {
<thead>
<tr>
<th>Date</th>
<th>What</th>
<th>Counter Account</th>
<th>Transfer Out</th>
<th>Transfer In</th>
<th>Amount</th>
<th>Description</th>
<th>Status</th>

View File

@@ -216,7 +216,7 @@ export class Account extends React.Component {
<Row>
<Col xs={12}>
<h3>Account History:</h3>
<h3>Transfer History:</h3>
</Col>
</Row>
<TransfersTable { ...this.props.transfers } />