This commit is contained in:
Jori Lallo
2017-09-10 23:33:07 -07:00
parent 429f0be939
commit 2fc0aee1b7

View File

@ -7,7 +7,7 @@ import Mask from './components/Mask';
import Flex from 'components/Flex'; import Flex from 'components/Flex';
type Props = { type Props = {
count: number, count?: number,
}; };
const ListPlaceHolder = ({ count }: Props) => { const ListPlaceHolder = ({ count }: Props) => {
@ -21,7 +21,7 @@ const ListPlaceHolder = ({ count }: Props) => {
transitionEnter transitionEnter
transitionLeave transitionLeave
> >
{_.times(count, () => ( {_.times(count || 2, () => (
<Item column auto> <Item column auto>
<Mask header /> <Mask header />
<Mask /> <Mask />
@ -31,10 +31,6 @@ const ListPlaceHolder = ({ count }: Props) => {
); );
}; };
ListPlaceHolder.defaultProps = {
count: 2,
};
const Item = styled(Flex)` const Item = styled(Flex)`
padding: 18px 0; padding: 18px 0;
`; `;