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