Skip to content

Commit

Permalink
fixup! fix(trade): last transactions design
Browse files Browse the repository at this point in the history
  • Loading branch information
adderpositive committed Nov 28, 2024
1 parent 7d1722f commit 1b69294
Showing 1 changed file with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InfoPair, Row, Text } from '@trezor/components';
import { InfoSegments } from '@trezor/components';
import { spacings } from '@trezor/theme';

import { FormattedDate } from 'src/components/suite';
Expand Down Expand Up @@ -26,18 +26,10 @@ export const CoinmarketTransactionInfo = ({ trade }: CoinmarketTransactionInfoPr
const tradeType = translationString(translationKeys[trade.tradeType]).toUpperCase();

return (
<Text margin={{ top: spacings.xs }} variant="tertiary" typographyStyle="label" as="div">
<Row alignItems="center" flexWrap="wrap">
<InfoPair
leftContent={
<InfoPair
leftContent={tradeType}
rightContent={<FormattedDate value={date} date time />}
/>
}
rightContent={<CoinmarketTransactionStatus trade={trade} />}
/>
</Row>
</Text>
<InfoSegments variant="tertiary" typographyStyle="label" margin={{ top: spacings.xs }}>
{tradeType}
<FormattedDate value={date} date time />
<CoinmarketTransactionStatus trade={trade} />
</InfoSegments>
);
};

0 comments on commit 1b69294

Please sign in to comment.