From 3166673875a636f43c70075260f61c37f920b111 Mon Sep 17 00:00:00 2001 From: Antoine Chalifour Date: Thu, 3 Oct 2019 12:57:42 +0200 Subject: [PATCH] fix: spinner typings --- src/components/Spinner/styles.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Spinner/styles.ts b/src/components/Spinner/styles.ts index c342171..29fcaae 100644 --- a/src/components/Spinner/styles.ts +++ b/src/components/Spinner/styles.ts @@ -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;