1
1
import React , { Component } from 'react' ;
2
- import PropTypes from 'prop-types' ;
3
2
import TableOfContents from 'rsg-components/TableOfContents' ;
4
3
import StyleGuideRenderer from 'rsg-components/StyleGuide/StyleGuideRenderer' ;
5
4
import Sections from 'rsg-components/Sections' ;
@@ -50,22 +49,6 @@ interface StyleGuideState {
50
49
}
51
50
52
51
export default class StyleGuide extends Component < StyleGuideProps , StyleGuideState > {
53
- public static propTypes = {
54
- codeRevision : PropTypes . number . isRequired ,
55
- cssRevision : PropTypes . string . isRequired ,
56
- config : PropTypes . object . isRequired ,
57
- slots : PropTypes . object . isRequired ,
58
- sections : PropTypes . array . isRequired ,
59
- welcomeScreen : PropTypes . bool ,
60
- patterns : PropTypes . array ,
61
- displayMode : PropTypes . string ,
62
- allSections : PropTypes . array . isRequired ,
63
- pagePerSection : PropTypes . bool ,
64
- } ;
65
- public static defaultProps = {
66
- displayMode : DisplayModes . all ,
67
- } ;
68
-
69
52
public state = {
70
53
error : false ,
71
54
info : null ,
@@ -85,7 +68,7 @@ export default class StyleGuide extends Component<StyleGuideProps, StyleGuideSta
85
68
sections,
86
69
welcomeScreen,
87
70
patterns,
88
- displayMode,
71
+ displayMode = DisplayModes . all ,
89
72
allSections,
90
73
pagePerSection,
91
74
codeRevision,
0 commit comments