mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-29 02:18:06 +00:00
fix font weight in Divider to match design guidelines
This commit is contained in:
parent
48d07e1dea
commit
7f07564ab6
@ -3,7 +3,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import colors from 'config/colors';
|
||||
import { FONT_SIZE } from 'config/variables';
|
||||
import { FONT_SIZE, FONT_WEIGHT } from 'config/variables';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
display: flex;
|
||||
@ -18,13 +18,17 @@ const Wrapper = styled.div`
|
||||
`}
|
||||
`;
|
||||
|
||||
const TextLeft = styled.p`
|
||||
font-weight: ${FONT_WEIGHT.MEDIUM};
|
||||
`;
|
||||
|
||||
const Divider = ({
|
||||
textLeft, textRight, hasBorder = false,
|
||||
}) => (
|
||||
<Wrapper
|
||||
hasBorder={hasBorder}
|
||||
>
|
||||
<p>{textLeft}</p>
|
||||
<TextLeft>{textLeft}</TextLeft>
|
||||
<p>{textRight}</p>
|
||||
</Wrapper>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user