Commit 487b5cec authored by Moody Salem's avatar Moody Salem

Don't allow the transaction status icon shrink

parent 6c9eeb46
...@@ -48,6 +48,10 @@ const TransactionState = styled(Link)<{ pending: boolean; success?: boolean }>` ...@@ -48,6 +48,10 @@ const TransactionState = styled(Link)<{ pending: boolean; success?: boolean }>`
} }
` `
const IconWrapper = styled.div`
flex-shrink: 0;
`
export default function Transaction({ hash }: { hash: string }) { export default function Transaction({ hash }: { hash: string }) {
const { chainId } = useWeb3React() const { chainId } = useWeb3React()
const allTransactions = useAllTransactions() const allTransactions = useAllTransactions()
...@@ -62,7 +66,9 @@ export default function Transaction({ hash }: { hash: string }) { ...@@ -62,7 +66,9 @@ export default function Transaction({ hash }: { hash: string }) {
<TransactionWrapper> <TransactionWrapper>
<TransactionState href={getEtherscanLink(chainId, hash, 'transaction')} pending={pending} success={success}> <TransactionState href={getEtherscanLink(chainId, hash, 'transaction')} pending={pending} success={success}>
<TransactionStatusText>{summary ? summary : hash}</TransactionStatusText> <TransactionStatusText>{summary ? summary : hash}</TransactionStatusText>
<IconWrapper>
{pending ? <Spinner src={Circle} /> : success ? <Check size="16" /> : <Triangle size="16" />} {pending ? <Spinner src={Circle} /> : success ? <Check size="16" /> : <Triangle size="16" />}
</IconWrapper>
</TransactionState> </TransactionState>
</TransactionWrapper> </TransactionWrapper>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment