Skip to content

Commit 9901249

Browse files
gcangussudanilowoz
authored andcommitted
Named default export of Holder.tsx. (#132)
1 parent 88ff13b commit 9901249

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Holder.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const InitialComponent: React.FunctionComponent<
2424
<rect x="0" y="0" rx="5" ry="5" width={props.width} height={props.height} />
2525
)
2626

27-
export default (props: IContentLoaderProps) => {
27+
const ContentLoader = (props: IContentLoaderProps) => {
2828
const mergedProps = { ...defaultProps, ...props }
2929
const children = props.children ? (
3030
props.children
@@ -34,3 +34,5 @@ export default (props: IContentLoaderProps) => {
3434

3535
return <Svg {...mergedProps}>{children}</Svg>
3636
}
37+
38+
export default ContentLoader

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Holder from './Holder'
1+
import ContentLoader from './Holder'
22
import { IContentLoaderProps } from './interface'
33

44
export { default as Facebook } from './stylized/FacebookStyle'
@@ -7,5 +7,5 @@ export { default as Code } from './stylized/CodeStyle'
77
export { default as List } from './stylized/ListStyle'
88
export { default as BulletList } from './stylized/BulletListStyle'
99

10-
export default Holder
10+
export default ContentLoader
1111
export { IContentLoaderProps }

0 commit comments

Comments
 (0)