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", "from": "git+https://github.com/lamassu/lamassu-coins.git",
"requires": { "requires": {
"bech32": "2.0.0", "bech32": "2.0.0",
"big-integer": "^1.6.48",
"bignumber.js": "^9.0.0", "bignumber.js": "^9.0.0",
"bitcoinjs-lib": "4.0.3", "bitcoinjs-lib": "4.0.3",
"bs58check": "^2.0.2", "bs58check": "^2.0.2",

View file

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

View file

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