|
|
|
@ -13,36 +13,41 @@ function TransactionIcon () { |
|
|
|
|
|
|
|
|
|
TransactionIcon.prototype.render = function () { |
|
|
|
|
const { transaction, txParams, isMsg } = this.props |
|
|
|
|
if (transaction.status === 'unapproved') { |
|
|
|
|
return h('.unapproved-tx', { |
|
|
|
|
style: { |
|
|
|
|
width: '15px', |
|
|
|
|
height: '15px', |
|
|
|
|
background: '#00bfff', |
|
|
|
|
borderRadius: '13px', |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
switch (transaction.status) { |
|
|
|
|
case 'unapproved': |
|
|
|
|
return h('.unapproved-tx', { |
|
|
|
|
style: { |
|
|
|
|
width: '24px', |
|
|
|
|
height: '24px', |
|
|
|
|
background: '#4dffff', |
|
|
|
|
border: 'solid', |
|
|
|
|
borderColor: '#AEAEAE', |
|
|
|
|
borderWidth: '0.5px', |
|
|
|
|
borderRadius: '13px', |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} else if (transaction.status === 'rejected') { |
|
|
|
|
return h('i.fa.fa-exclamation-triangle.fa-lg.warning', { |
|
|
|
|
style: { |
|
|
|
|
width: '24px', |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} else if (transaction.status === 'signed') { |
|
|
|
|
return h('i.fa.fa-ellipsis-h', { |
|
|
|
|
style: { |
|
|
|
|
fontSize: '27px', |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} else if (transaction.status === 'failed') { |
|
|
|
|
return h('i.fa.fa-exclamation-triangle.fa-lg.warning', { |
|
|
|
|
style: { |
|
|
|
|
fontSize: '24px', |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
case 'rejected': |
|
|
|
|
return h('i.fa.fa-exclamation-triangle.fa-lg.warning', { |
|
|
|
|
style: { |
|
|
|
|
width: '24px', |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
case 'failed': |
|
|
|
|
return h('i.fa.fa-exclamation-triangle.fa-lg.error', { |
|
|
|
|
style: { |
|
|
|
|
width: '24px', |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
case 'signed': |
|
|
|
|
return h('i.fa.fa-ellipsis-h', { |
|
|
|
|
style: { |
|
|
|
|
fontSize: '27px', |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (isMsg) { |
|
|
|
|
return h('i.fa.fa-certificate.fa-lg', { |
|
|
|
|