File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ class ContentLoader extends Component {
1717
1818 this . state = {
1919 style : props . style ,
20- type : props . type || 'facebook' ,
21- speed : props . speed || 2 ,
22- height : props . height || 130 ,
23- width : props . width || 400 ,
24- primaryColor : props . primaryColor || '#f0f0f0' ,
25- secondaryColor : props . secondaryColor || '#e0e0e0'
20+ type : props . type ,
21+ speed : props . speed ,
22+ width : props . width ,
23+ height : props . height ,
24+ primaryColor : props . primaryColor ,
25+ secondaryColor : props . secondaryColor
2626 }
2727 }
2828
@@ -66,10 +66,20 @@ ContentLoader.propTypes = {
6666 style : PropTypes . object ,
6767 type : PropTypes . string ,
6868 speed : PropTypes . number ,
69+ width : PropTypes . number ,
6970 height : PropTypes . number ,
7071 primaryColor : PropTypes . string ,
7172 secondaryColor : PropTypes . string
7273}
7374
75+ ContentLoader . defaultProps = {
76+ type : 'facebook' ,
77+ speed : 2 ,
78+ width : 400 ,
79+ height : 130 ,
80+ primaryColor : '#f0f0f0' ,
81+ secondaryColor : '#e0e0e0'
82+ }
83+
7484export default ContentLoader
7585export { Rect , Circle }
You can’t perform that action at this time.
0 commit comments