From 4ebee8648407e00ee764c5990a81c504d0c025c8 Mon Sep 17 00:00:00 2001 From: Rafael Franco Date: Thu, 28 Jan 2021 14:59:37 -0300 Subject: [PATCH] fix: fix prop types --- src/index.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 464b943..b1dd87f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -13,12 +13,6 @@ type StyledContentLoaderProps = { backgroundColor?: string foregroundColor?: string isLoading?: boolean -} & typeof defaultProps - -const defaultProps = { - backgroundColor: '#e6e6e6', - foregroundColor: '#f0f0f0', - isLoading: true, } const StyledContentLoader = styled.span( @@ -53,6 +47,10 @@ const StyledContentLoader = styled.span( `, ) -StyledContentLoader.defaultProps = defaultProps +StyledContentLoader.defaultProps = { + backgroundColor: '#e6e6e6', + foregroundColor: '#f0f0f0', + isLoading: true, +} export default StyledContentLoader