diff --git a/frontend/components/LoadingPlaceholder/ListPlaceholder.js b/frontend/components/LoadingPlaceholder/ListPlaceholder.js index 379799d6..3eb818d3 100644 --- a/frontend/components/LoadingPlaceholder/ListPlaceholder.js +++ b/frontend/components/LoadingPlaceholder/ListPlaceholder.js @@ -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, () => ( @@ -31,10 +31,6 @@ const ListPlaceHolder = ({ count }: Props) => { ); }; -ListPlaceHolder.defaultProps = { - count: 2, -}; - const Item = styled(Flex)` padding: 18px 0; `;