Skip to content

Commit

Permalink
fix: show transaction amount above Increase Fee, closes #5826
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Sep 4, 2024
1 parent 4897030 commit 0a61651
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export function IncreaseFeeButton(props: IncreaseFeeButtonProps) {
<styled.button
_hover={{ color: 'ink.text-subdued' }}
bg="ink.background-primary"
maxWidth="110px"
ml="auto"
onClick={e => {
onIncreaseFee();
e.stopPropagation();
Expand All @@ -25,7 +23,6 @@ export function IncreaseFeeButton(props: IncreaseFeeButtonProps) {
pointerEvents={!isActive ? 'none' : 'all'}
position="relative"
px="space.02"
py="space.01"
rounded="xs"
zIndex={999}
>
Expand Down
15 changes: 11 additions & 4 deletions src/app/components/transaction-item/transaction-item.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ interface TransactionItemLayoutProps {
children?: ReactNode;
}

function TxValue({ txValue }: { txValue: ReactNode }) {
return (
<styled.span textStyle="label.02" px="space.02">
{txValue}
</styled.span>
);
}

export function TransactionItemLayout({
openTxLink,
rightElement,
Expand All @@ -25,7 +33,7 @@ export function TransactionItemLayout({
txValue,
}: TransactionItemLayoutProps) {
return (
<Pressable onClick={openTxLink} p="space.03">
<Pressable onClick={openTxLink} my="space.02">
<ItemLayout
flagImg={txIcon && txIcon}
titleLeft={txTitle}
Expand All @@ -41,9 +49,8 @@ export function TransactionItemLayout({
{txStatus && txStatus}
</HStack>
}
titleRight={
rightElement ? rightElement : <styled.span textStyle="label.02">{txValue}</styled.span>
}
titleRight={<TxValue txValue={txValue} />}
captionRight={rightElement}
/>
</Pressable>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export function PendingTransactionListLayout({ children }: PendingTransactionLis
<styled.span color="ink.text-subdued" textStyle="body.02">
Pending
</styled.span>
<Stack pb="space.06">{children}</Stack>
<Stack pb="space.06" mt="space.04">
{children}
</Stack>
</>
);
}

0 comments on commit 0a61651

Please sign in to comment.