Skip to content

Commit

Permalink
fix: fix prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
rfoel committed Jan 28, 2021
1 parent 37a9cb3 commit 4ebee86
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<StyledContentLoaderProps>(
Expand Down Expand Up @@ -53,6 +47,10 @@ const StyledContentLoader = styled.span<StyledContentLoaderProps>(
`,
)

StyledContentLoader.defaultProps = defaultProps
StyledContentLoader.defaultProps = {
backgroundColor: '#e6e6e6',
foregroundColor: '#f0f0f0',
isLoading: true,
}

export default StyledContentLoader

0 comments on commit 4ebee86

Please sign in to comment.