1
0
mirror of https://github.com/SomboChea/ui synced 2024-12-25 05:34:26 +07:00

fix: spinner typings

This commit is contained in:
Antoine Chalifour 2019-10-03 12:57:42 +02:00 committed by antoinechalifour
parent 626bcce5cb
commit 3166673875

View File

@ -3,13 +3,16 @@ import styled, { css } from 'react-emotion';
import colors from '../../utils/styles/colors';
interface WrapperProps {
centered: boolean;
}
export const Wrapper = styled('div')`
&& {
display: flex;
align-items: center;
justify-content: center;
${props =>
// @ts-ignore
${(props: WrapperProps) =>
props.centered &&
css`
position: absolute;