Linting
This commit is contained in:
@ -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;
|
||||||
`;
|
`;
|
||||||
|
Reference in New Issue
Block a user