@@ -32,20 +32,24 @@ export const TransactionEvent = ({
3232 transactionAmount,
3333 scaffoldTransactionIndex
3434 }
35- } ) => (
36- < div >
37- < b > { date ? formatDate ( date ) : null } </ b > < i > { type . replace ( / _ / g , ' ' ) } </ i >
35+ } ) => {
36+ const resultType = type === 'ACTIVATED_SCAFFOLD' ? 'DEACTIVATED_SCAFFOLD' : type ;
37+ return (
3838 < div >
39- { renderAddress ( 'User Address' , userAddress ) }
40- { renderAddress ( 'to Address' , toAddress ) }
41- { renderAddress ( 'Customer Address' , customerAddress ) }
42- { activated ? < TransactionParam > Activated: { activated } </ TransactionParam > : null }
43- { partnerShare ? < TransactionParam > Partner Share: { partnerShare } %</ TransactionParam > : null }
44- { amount ? < TransactionParam > Amount: { amount } %</ TransactionParam > : null }
45- { transactionAmount ? < TransactionParam > Transaction Amount: { transactionAmount } %</ TransactionParam > : null }
46- { scaffoldTransactionIndex ? (
47- < TransactionParam > Transaction Index: { scaffoldTransactionIndex } %</ TransactionParam >
48- ) : null }
39+ { /* <b>{date ? formatDate(date, DD_MMM_YYYY + ' HH:MM') : null}</b> <i>{resultType.replace(/_/g, ' ')}</i> */ }
40+ < b > { date ? formatDate ( date ) : null } </ b > < i > { resultType . replace ( / _ / g, ' ' ) } </ i >
41+ < div >
42+ { renderAddress ( 'User Address' , userAddress ) }
43+ { renderAddress ( 'to Address' , toAddress ) }
44+ { renderAddress ( 'Customer Address' , customerAddress ) }
45+ { activated ? < TransactionParam > Activated: { activated } </ TransactionParam > : null }
46+ { partnerShare ? < TransactionParam > Partner Share: { partnerShare } %</ TransactionParam > : null }
47+ { amount ? < TransactionParam > Amount: { amount } %</ TransactionParam > : null }
48+ { transactionAmount ? < TransactionParam > Transaction Amount: { transactionAmount } %</ TransactionParam > : null }
49+ { scaffoldTransactionIndex ? (
50+ < TransactionParam > Transaction Index: { scaffoldTransactionIndex } %</ TransactionParam >
51+ ) : null }
52+ </ div >
4953 </ div >
50- </ div >
51- ) ;
54+ ) ;
55+ } ;
0 commit comments