LoadingIndicator
Summary: _typescript_ Reviewed By: passy, bnelo12 Differential Revision: D16830547 fbshipit-source-id: faaf843dfc667242aa9bf34443b89856751dd2b8
This commit is contained in:
committed by
Facebook Github Bot
parent
726b9cb141
commit
e80385169a
@@ -5,7 +5,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import styled from '../styled/index.js';
|
||||
import styled from 'react-emotion';
|
||||
import {keyframes} from 'react-emotion';
|
||||
|
||||
const animation = keyframes({
|
||||
@@ -17,7 +17,7 @@ const animation = keyframes({
|
||||
},
|
||||
});
|
||||
|
||||
const LoadingIndicator = styled('div')(props => ({
|
||||
const LoadingIndicator = styled('div')((props: {size: number}) => ({
|
||||
animation: `${animation} 1s infinite linear`,
|
||||
width: props.size,
|
||||
height: props.size,
|
||||
Reference in New Issue
Block a user