Skip to content

Commit

Permalink
Updated wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
JackNeto committed Jul 3, 2019
1 parent 364ce87 commit e29508e
Show file tree
Hide file tree
Showing 12 changed files with 213 additions and 250 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exports[`TableToolbar matches snapshot with some selected items 1`] = `
className="MuiTypography-root-10 MuiTypography-subtitle1-28 MuiTypography-colorInherit-39"
>
1
selected
 selected
</h6>
</div>
<div
Expand Down
2 changes: 1 addition & 1 deletion src/common/TableToolbar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const TableToolbar = ({
{selectedItems.length > 0 ? (
<Typography color="inherit" variant="subtitle1">
{selectedItems.length}
selected
&nbsp;selected
</Typography>
) : (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ exports[`ResultsToolbar matches snapshot with some selected transactions 1`] = `
className="MuiTypography-root-10 MuiTypography-subtitle1-28 MuiTypography-colorInherit-39"
>
2
selected
 selected
</h6>
</div>
<div
Expand Down
26 changes: 13 additions & 13 deletions src/core/Accounts/Transactions/TransactionsTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,22 +168,22 @@ export class TransactionsTableComponent extends React.Component {
})
}

displayCurrency = ({ amount, nativeAmount }) => {
displayCurrency = ({ amount }) => {
const {
classes,
account,
formatCurrency,
// classes,
// account,
// formatCurrency,
formatDecimal
} = this.props
if (account.type === 'wallet') {
return (
<div>
{formatDecimal(amount)}
{account.symbol}
<small className={classes.nativeAmount}>{formatCurrency(nativeAmount)}</small>
</div>
)
}
// if (account.type === 'wallet') {
// return (
// <div>
// {formatDecimal(amount)}
// {account.symbol}
// <small className={classes.nativeAmount}>{formatCurrency(nativeAmount)}</small>
// </div>
// )
// }
return formatDecimal(amount)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ exports[`TransactionsToolbar matches snapshot with some selected transactions 1`
className="MuiTypography-root-10 MuiTypography-subtitle1-28 MuiTypography-colorInherit-39"
>
2
selected
 selected
</h6>
</div>
<div
Expand Down
Loading

0 comments on commit e29508e

Please sign in to comment.