Skip to content

Commit 83d97a7

Browse files
committed
fixup! fix(trade): last transactions design
1 parent 1e3375b commit 83d97a7

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from 'styled-components';
22

3-
import { iconSizes, Image, Row } from '@trezor/components';
4-
import { borders } from '@trezor/theme';
3+
import { Box, iconSizes, Image } from '@trezor/components';
4+
import { borders, spacings } from '@trezor/theme';
55

66
import { useSelector } from 'src/hooks/suite';
77

@@ -16,19 +16,12 @@ interface CoinmarketIconProps {
1616

1717
export const CoinmarketIcon = ({ iconUrl }: CoinmarketIconProps) => {
1818
const currentTheme = useSelector(state => state.suite.settings.theme.variant);
19-
const SIDE_PADDING = 2;
20-
const iconWrapperSize = iconSizes.mediumLarge + 2 * SIDE_PADDING;
2119

2220
return (
2321
<CoinmarketIconWrapper $isDark={currentTheme === 'dark'}>
24-
<Row
25-
alignItems="center"
26-
justifyContent="center"
27-
height={iconWrapperSize}
28-
width={iconWrapperSize}
29-
>
22+
<Box margin={spacings.xxxs} height={iconSizes.mediumLarge}>
3023
<Image imageSrc={iconUrl} width={iconSizes.mediumLarge} alt="" />
31-
</Row>
24+
</Box>
3225
</CoinmarketIconWrapper>
3326
);
3427
};

0 commit comments

Comments
 (0)