fix font weight in Divider to match design guidelines

pull/338/head
slowbackspace 5 years ago
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…
Cancel
Save