feat: separate draft count and icon in sidebar

This commit is contained in:
Tom Moor
2019-08-05 23:17:41 -07:00
parent 7f10fe728f
commit c18e4cd43e
2 changed files with 14 additions and 18 deletions

View File

@@ -2,25 +2,15 @@
import * as React from 'react';
import styled from 'styled-components';
import { fadeAndScaleIn } from 'shared/styles/animations';
import Flex from 'shared/components/Flex';
type Props = {
count: number,
};
const Bubble = ({ count }: Props) => {
return (
<Wrapper align="center" justify="center">
<Count>{count}</Count>
</Wrapper>
);
return <Count>{count}</Count>;
};
const Wrapper = styled(Flex)`
width: 24px;
height: 24px;
`;
const Count = styled.div`
animation: ${fadeAndScaleIn} 200ms ease;
border-radius: 100%;
@@ -35,6 +25,7 @@ const Count = styled.div`
min-height: 16px;
text-align: center;
padding: 0 4px;
margin-left: 8px;
`;
export default Bubble;