feat: add machine name to customer txs table

This commit is contained in:
José Oliveira 2021-11-02 23:32:28 +00:00
parent 9716a1c847
commit 4841ef21a5
3 changed files with 13 additions and 7 deletions

View file

@ -17188,7 +17188,6 @@
"from": "git+https://github.com/lamassu/lamassu-coins.git",
"requires": {
"bech32": "2.0.0",
"big-integer": "^1.6.48",
"bignumber.js": "^9.0.0",
"bitcoinjs-lib": "4.0.3",
"bs58check": "^2.0.2",

View file

@ -69,6 +69,7 @@ const GET_CUSTOMER = gql`
cryptoAtoms
cryptoCode
created
machineName
errorMessage: error
error: errorCode
txCustomerPhotoAt

View file

@ -71,7 +71,13 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
const tableElements = [
{
width: 75,
header: 'Machine',
width: 160,
view: R.path(['machineName'])
},
{
header: 'Direction',
width: 125,
view: it => (
<>
{it.txClass === 'cashOut' ? (
@ -84,14 +90,14 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
},
{
header: 'Transaction ID',
width: 175,
width: 145,
view: it => (
<CopyToClipboard className={classes.txId}>{it.id}</CopyToClipboard>
)
},
{
header: 'Cash',
width: 175,
width: 155,
textAlign: 'right',
view: it => (
<>
@ -102,7 +108,7 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
},
{
header: 'Crypto',
width: 175,
width: 145,
textAlign: 'right',
view: it => (
<>
@ -115,12 +121,12 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
},
{
header: 'Date',
width: 160,
width: 100,
view: it => formatDate(it.created, timezone, 'YYYY-MM-D')
},
{
header: 'Time (h:m:s)',
width: 134,
width: 130,
view: it => formatDate(it.created, timezone, 'HH:mm:ss')
}
]