Remove transaction status from cross-chain message lifecycle (#3298)

This commit is contained in:
tom goriunov
2026-02-25 15:54:20 +01:00
committed by GitHub
parent 63cc4e1ae7
commit 9d5da08bb3
6 changed files with 8 additions and 9 deletions
@@ -7,7 +7,6 @@ import DetailedInfoTimestamp from 'ui/shared/DetailedInfo/DetailedInfoTimestamp'
import TxEntityInterchain from 'ui/shared/entities/tx/TxEntityInterchain';
import ChainLabel from 'ui/shared/externalChains/ChainLabel';
import { Root, Item, Trigger, ItemContent, ItemBody, ItemRow } from 'ui/shared/lifecycle/LifecycleAccordion';
import TxStatus from 'ui/shared/statusTag/TxStatus';
interface Props {
data: InterchainMessage;
@@ -28,7 +27,7 @@ const TxCrossChainDetailsLifecycle = ({ data, isLoading }: Props) => {
return (
<>
<Trigger
status={ isError ? 'error' : 'success' }
status={ isLast && isError ? 'error' : 'success' }
text="Initiated"
isFirst
isLast={ isLast }
@@ -51,9 +50,6 @@ const TxCrossChainDetailsLifecycle = ({ data, isLoading }: Props) => {
<ItemRow label="Timestamp">
<DetailedInfoTimestamp timestamp={ data.send_timestamp } isLoading={ isLoading } flexWrap={{ base: 'wrap', lg: 'nowrap' }} py="6px"/>
</ItemRow>
<ItemRow label="Status">
<TxStatus status={ isError ? 'error' : 'ok' } isLoading={ isLoading } my="4px"/>
</ItemRow>
</ItemBody>
</ItemContent>
</>
@@ -70,7 +66,13 @@ const TxCrossChainDetailsLifecycle = ({ data, isLoading }: Props) => {
return (
<>
<Trigger status="success" text="Completed" isFirst={ false } isLast isLoading={ isLoading }/>
<Trigger
status={ isError ? 'error' : 'success' }
text="Completed"
isFirst={ false }
isLast
isLoading={ isLoading }
/>
<ItemContent isLast>
<ItemBody>
<ItemRow label="Chain">
@@ -90,9 +92,6 @@ const TxCrossChainDetailsLifecycle = ({ data, isLoading }: Props) => {
<DetailedInfoTimestamp timestamp={ data.receive_timestamp } isLoading={ isLoading } flexWrap={{ base: 'wrap', lg: 'nowrap' }} py="6px"/>
</ItemRow>
) }
<ItemRow label="Status">
<TxStatus status={ isError ? 'error' : 'ok' } isLoading={ isLoading } my="4px"/>
</ItemRow>
</ItemBody>
</ItemContent>
</>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 37 KiB