fix(my-joy-beta): pluralize 'pair' when appropriate

This commit is contained in:
Sérgio Ramos 2018-01-04 12:36:34 +00:00 committed by Sérgio Ramos
parent 17d3563a42
commit 16733251a1
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ export const Metadata = ({
const _count = !_loading ? (
<Margin bottom={4} top={addOpen && 4}>
<H3>{metadata.length} key:value pair</H3>
<H3>{metadata.length} key:value pair{metadata.length === 1 ? '' : 's'}</H3>
</Margin>
) : null;

View File

@ -5,7 +5,7 @@ import is from 'styled-is';
export default styled.li`
border: ${remcalc(1)} solid ${props => props.theme.grey};
box-sizing: border-box;
border-radius: ${remcalc(2)};
border-radius: ${remcalc(3)};
font-size: ${remcalc(13)};
padding: ${remcalc(6)} ${remcalc(12)};
display: flex;