1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-30 12:18:09 +00:00

same height DeviceImage

This commit is contained in:
slowbackspace 2019-03-25 12:31:37 +01:00
parent d7b8c5262b
commit 95b562c76c
2 changed files with 4 additions and 6 deletions

View File

@ -91,9 +91,6 @@ const Dot = styled.div`
height: 10px;
`;
const StyledTrezorImage = styled(TrezorImage)`
width: ${props => (props.model === 2 ? '17px' : '13px')};
`;
const DeviceHeader = ({
isOpen,
@ -120,7 +117,8 @@ const DeviceHeader = ({
>
<ImageWrapper>
<Dot color={getStatusColor(status)} />
<StyledTrezorImage
<TrezorImage
height={28}
model={(device.features && device.features.major_version) || 1}
/>
</ImageWrapper>

View File

@ -40,10 +40,10 @@ const Label = styled.div`
`;
const IconWrapper = styled.div`
width: 14px;
width: 18px;
display: flex;
justify-content: center;
margin-right: 20px;
margin-right: 15px;
`;
class MenuItems extends PureComponent {