LoadingIndicator

Summary: _typescript_

Reviewed By: passy, bnelo12

Differential Revision: D16830547

fbshipit-source-id: faaf843dfc667242aa9bf34443b89856751dd2b8
This commit is contained in:
Daniel Büchele
2019-08-20 03:18:32 -07:00
committed by Facebook Github Bot
parent 726b9cb141
commit e80385169a
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
* @format * @format
*/ */
import styled from '../styled/index.js'; import styled from 'react-emotion';
import {keyframes} from 'react-emotion'; import {keyframes} from 'react-emotion';
const animation = keyframes({ 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`, animation: `${animation} 1s infinite linear`,
width: props.size, width: props.size,
height: props.size, height: props.size,

View File

@@ -21,7 +21,7 @@ export {colors, darkColors, brandColors} from './components/colors.tsx';
export {default as Glyph} from './components/Glyph.js'; export {default as Glyph} from './components/Glyph.js';
// //
export {default as LoadingIndicator} from './components/LoadingIndicator.js'; export {default as LoadingIndicator} from './components/LoadingIndicator.tsx';
// //
export {default as Popover} from './components/Popover.tsx'; export {default as Popover} from './components/Popover.tsx';