Move Fade to its own component
Fixed todolist strikethrough styling with nested lists
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
import React from 'react';
|
||||
import _ from 'lodash';
|
||||
import styled from 'styled-components';
|
||||
import { fadeIn } from 'shared/styles/animations';
|
||||
import Mask from './components/Mask';
|
||||
import Fade from 'components/Fade';
|
||||
import Flex from 'shared/components/Flex';
|
||||
|
||||
type Props = {
|
||||
@@ -23,10 +23,6 @@ const ListPlaceHolder = ({ count }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
const Fade = styled.span`
|
||||
animation: ${fadeIn} 150ms ease-in-out;
|
||||
`;
|
||||
|
||||
const Item = styled(Flex)`
|
||||
padding: 18px 0;
|
||||
`;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { fadeIn } from 'shared/styles/animations';
|
||||
import Mask from './components/Mask';
|
||||
import Fade from 'components/Fade';
|
||||
import Flex from 'shared/components/Flex';
|
||||
|
||||
export default function LoadingPlaceholder(props: Object) {
|
||||
@@ -17,7 +16,3 @@ export default function LoadingPlaceholder(props: Object) {
|
||||
</Fade>
|
||||
);
|
||||
}
|
||||
|
||||
const Fade = styled.span`
|
||||
animation: ${fadeIn} 150ms ease-in-out;
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user