This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Tom Moor f34b32b2a3 Move Fade to its own component
Fixed todolist strikethrough styling with nested lists
2017-11-10 17:56:09 -08:00

31 lines
576 B
JavaScript

// @flow
import React from 'react';
import _ from 'lodash';
import styled from 'styled-components';
import Mask from './components/Mask';
import Fade from 'components/Fade';
import Flex from 'shared/components/Flex';
type Props = {
count?: number,
};
const ListPlaceHolder = ({ count }: Props) => {
return (
<Fade>
{_.times(count || 2, index => (
<Item key={index} column auto>
<Mask header />
<Mask />
</Item>
))}
</Fade>
);
};
const Item = styled(Flex)`
padding: 18px 0;
`;
export default ListPlaceHolder;