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