diff --git a/src/containers/shared/components/Transaction/EscrowCreate/TableDetail.tsx b/src/containers/shared/components/Transaction/EscrowCreate/TableDetail.tsx index e25169d85..8300b5caa 100644 --- a/src/containers/shared/components/Transaction/EscrowCreate/TableDetail.tsx +++ b/src/containers/shared/components/Transaction/EscrowCreate/TableDetail.tsx @@ -15,7 +15,7 @@ export const TableDetail = (props: any) => { {amount && (
{t('amount')} - +
)} {destination && ( diff --git a/src/containers/shared/components/Transaction/OracleDelete/Simple.tsx b/src/containers/shared/components/Transaction/OracleDelete/Simple.tsx index 98bf591a9..a230dcaea 100644 --- a/src/containers/shared/components/Transaction/OracleDelete/Simple.tsx +++ b/src/containers/shared/components/Transaction/OracleDelete/Simple.tsx @@ -8,7 +8,7 @@ export const Simple: TransactionSimpleComponent = ({ const { t } = useTranslation() const { OracleDocumentID } = data.instructions return ( - + {OracleDocumentID} ) diff --git a/src/containers/shared/components/Transaction/OracleSet/Simple.tsx b/src/containers/shared/components/Transaction/OracleSet/Simple.tsx index 08bb96471..e282fc07b 100644 --- a/src/containers/shared/components/Transaction/OracleSet/Simple.tsx +++ b/src/containers/shared/components/Transaction/OracleSet/Simple.tsx @@ -22,23 +22,26 @@ export const Simple: TransactionSimpleComponent = ({ } = data.instructions return ( <> - + {oracleDocumentID} {provider && ( - + {provider} )} {uri && ( - + {uri} )} - + {localizeDate( new Date(lastUpdateTime * MILLIS_PER_SECOND), language, @@ -47,14 +50,14 @@ export const Simple: TransactionSimpleComponent = ({ {assetClass && ( - + {assetClass} )} - + {priceDataSeries.map((priceDataObj) => ( -
+
{priceDataObj.assetPrice ?? t('deleted')}
/ diff --git a/src/containers/shared/components/Transaction/PaymentChannelClaim/TableDetail.tsx b/src/containers/shared/components/Transaction/PaymentChannelClaim/TableDetail.tsx index 18023b916..1a249f37e 100644 --- a/src/containers/shared/components/Transaction/PaymentChannelClaim/TableDetail.tsx +++ b/src/containers/shared/components/Transaction/PaymentChannelClaim/TableDetail.tsx @@ -51,7 +51,7 @@ export const TableDetail = ({
)} {channelAmount && !claimed && ( -
+
{t('channel_amount')}
diff --git a/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimTableDetail.test.tsx b/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimTableDetail.test.tsx index 67754651d..de68e843d 100644 --- a/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimTableDetail.test.tsx +++ b/src/containers/shared/components/Transaction/PaymentChannelClaim/test/PaymentChannelClaimTableDetail.test.tsx @@ -21,7 +21,7 @@ describe('PaymentChannelClaim: TableDetail', () => { expect(wrapper.find('[data-testid="claimed"]')).toHaveText( 'claimed\uE9000.01 XRP (\uE90020.34284 XRP of \uE90070.00 XRP remaining)', ) - expect(wrapper.find('[data-testid="amount"]')).not.toExist() + expect(wrapper.find('[data-testid="channel-amount"]')).not.toExist() expect(wrapper.find('[data-testid="renew"]')).not.toExist() expect(wrapper.find('[data-testid="close-request"]')).not.toExist() expect(wrapper.find('[data-testid="closed"]')).not.toExist() @@ -37,7 +37,7 @@ describe('PaymentChannelClaim: TableDetail', () => { 'destinationrK6g2UYc4GpQH8DYdPG7wywyQbxkJpQTTN', ) expect(wrapper.find('[data-testid="claimed"]')).not.toExist() - expect(wrapper.find('[data-testid="amount"]')).toHaveText( + expect(wrapper.find('[data-testid="channel-amount"]')).toHaveText( 'channel amount\uE90010.00 XRP', ) expect(wrapper.find('[data-testid="renew"]')).not.toExist() @@ -59,7 +59,7 @@ describe('PaymentChannelClaim: TableDetail', () => { 'destinationrK6g2UYc4GpQH8DYdPG7wywyQbxkJpQTTN', ) expect(wrapper.find('[data-testid="claimed"]')).not.toExist() - expect(wrapper.find('[data-testid="amount"]')).toHaveText( + expect(wrapper.find('[data-testid="channel-amount"]')).toHaveText( 'channel amount\uE90010.00 XRP', ) expect(wrapper.find('[data-testid="renew"]')).not.toExist() @@ -81,7 +81,7 @@ describe('PaymentChannelClaim: TableDetail', () => { expect(wrapper.find('[data-testid="claimed"]')).toHaveText( 'claimed\uE9001.00 XRP (\uE90099.00 XRP of \uE900100.00 XRP remaining)', ) - expect(wrapper.find('[data-testid="amount"]')).not.toExist() + expect(wrapper.find('[data-testid="channel-amount"]')).not.toExist() expect(wrapper.find('[data-testid="renew"]')).not.toExist() expect(wrapper.find('[data-testid="close-request"]')).not.toExist() expect(wrapper.find('[data-testid="closed"]')).not.toExist() diff --git a/src/containers/shared/components/Transaction/PaymentChannelCreate/TableDetail.tsx b/src/containers/shared/components/Transaction/PaymentChannelCreate/TableDetail.tsx index f40968708..bca200507 100644 --- a/src/containers/shared/components/Transaction/PaymentChannelCreate/TableDetail.tsx +++ b/src/containers/shared/components/Transaction/PaymentChannelCreate/TableDetail.tsx @@ -20,7 +20,7 @@ export const TableDetail = ({ {t('destination')}
-
+
{t('channel_amount')}
diff --git a/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx b/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx index b31e4c8fe..bef431ba4 100644 --- a/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx +++ b/src/containers/shared/components/Transaction/PaymentChannelCreate/test/PaymentChannelCreateTableDetail.test.tsx @@ -17,9 +17,7 @@ describe('PaymentChannelCreate: TableDetail', () => { expect(wrapper.find('[data-testid="destination"]')).toHaveText( 'destinationrUXYat4hW2M87gHoqKK7fC4cqrT9C6V7d7', ) - expect(wrapper.find('[data-testid="amount"]')).toHaveText( - 'channel amount\uE9001.00 XRP', - ) + expect(wrapper.find('[data-testid="amount"]')).toHaveText('\uE9001.00 XRP') wrapper.unmount() }) @@ -31,9 +29,7 @@ describe('PaymentChannelCreate: TableDetail', () => { expect(wrapper.find('[data-testid="destination"]')).toHaveText( 'destinationrK6g2UYc4GpQH8DYdPG7wywyQbxkJpQTTN', ) - expect(wrapper.find('[data-testid="amount"]')).toHaveText( - 'channel amount\uE90010.00 XRP', - ) + expect(wrapper.find('[data-testid="amount"]')).toHaveText('\uE90010.00 XRP') wrapper.unmount() }) @@ -46,7 +42,7 @@ describe('PaymentChannelCreate: TableDetail', () => { 'destinationrf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn:20170428', ) expect(wrapper.find('[data-testid="amount"]')).toHaveText( - 'channel amount\uE900100.00 XRP', + '\uE900100.00 XRP', ) wrapper.unmount() }) diff --git a/src/containers/shared/components/Transaction/PaymentChannelFund/Simple.tsx b/src/containers/shared/components/Transaction/PaymentChannelFund/Simple.tsx index 3cc50f12b..a1111c43c 100644 --- a/src/containers/shared/components/Transaction/PaymentChannelFund/Simple.tsx +++ b/src/containers/shared/components/Transaction/PaymentChannelFund/Simple.tsx @@ -26,7 +26,7 @@ export const Simple = ({ )} {channelAmount && ( - + )} diff --git a/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundSimple.test.tsx b/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundSimple.test.tsx index 743ca5a69..a9b884ad6 100644 --- a/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundSimple.test.tsx +++ b/src/containers/shared/components/Transaction/PaymentChannelFund/test/PaymentChannelFundSimple.test.tsx @@ -17,8 +17,8 @@ describe('PaymentChannelFund: Simple', () => { const wrapper = createWrapper(mockPaymentChannelFund) expectSimpleRowLabel(wrapper, 'increase', 'channel amount increase') expectSimpleRowText(wrapper, 'increase', '+\uE9001.00 XRP') - expectSimpleRowLabel(wrapper, 'amount', 'channel amount') - expectSimpleRowText(wrapper, 'amount', '\uE90075.00 XRP') + expectSimpleRowLabel(wrapper, 'channel-amount', 'channel amount') + expectSimpleRowText(wrapper, 'channel-amount', '\uE90075.00 XRP') expectSimpleRowLabel(wrapper, 'total', 'total claimed') expectSimpleRowText(wrapper, 'total', '\uE90061.859345 XRP') expectSimpleRowLabel(wrapper, 'source', 'source') @@ -46,7 +46,7 @@ describe('PaymentChannelFund: Simple', () => { const wrapper = createWrapper(mockPaymentChannelFundFailed) expectSimpleRowLabel(wrapper, 'increase', 'channel amount increase') expectSimpleRowText(wrapper, 'increase', '+\uE90020.00 XRP') - expectSimpleRowNotToExist(wrapper, 'amount') + expectSimpleRowNotToExist(wrapper, 'channel-amount') expectSimpleRowNotToExist(wrapper, 'total') expectSimpleRowNotToExist(wrapper, 'source') expectSimpleRowNotToExist(wrapper, 'destination')