@@ -13,11 +13,11 @@ interface ComponentExamplesProps {
1313}
1414
1515export default class ComponentExamples extends React . Component < ComponentExamplesProps , any > {
16- public static propTypes = {
16+ static propTypes = {
1717 displayName : PropTypes . string . isRequired ,
1818 }
1919
20- public render ( ) {
20+ render ( ) {
2121 return this . renderExamples ( ) || this . renderMissingExamples ( )
2222 }
2323
@@ -29,7 +29,7 @@ export default class ComponentExamples extends React.Component<ComponentExamples
2929 * 2. for every ./docs/src/components/{...}/{...}MyComponent{...}Example{...}.tsx there needs to be a shorthand version of it:
3030 * ./docs/src/components/{...}/{...}MyComponent{...}Example{...}.shorthand.tsx
3131 */
32- private renderExamples = ( ) : JSX . Element | null => {
32+ renderExamples = ( ) : JSX . Element | null => {
3333 const { displayName } = this . props
3434
3535 // rule #1
@@ -56,7 +56,7 @@ export default class ComponentExamples extends React.Component<ComponentExamples
5656 )
5757 }
5858
59- private renderMissingExamples = ( ) => {
59+ renderMissingExamples = ( ) => {
6060 const { displayName } = this . props
6161
6262 return this . renderElementWrappedInGrid (
@@ -66,7 +66,7 @@ export default class ComponentExamples extends React.Component<ComponentExamples
6666 )
6767 }
6868
69- private renderMissingShorthandExamples = ( missingPaths : string [ ] ) => {
69+ renderMissingShorthandExamples = ( missingPaths : string [ ] ) => {
7070 return this . renderElementWrappedInGrid (
7171 < ContributionPrompt >
7272 < div > Looks like we're missing examples at following paths:</ div >
@@ -75,9 +75,9 @@ export default class ComponentExamples extends React.Component<ComponentExamples
7575 )
7676 }
7777
78- private renderElementWrappedInGrid = ( Element : JSX . Element ) => < Segment content = { Element } />
78+ renderElementWrappedInGrid = ( Element : JSX . Element ) => < Segment content = { Element } />
7979
80- private getMissingExamplePaths ( displayName : string , allPaths : string [ ] ) : string [ ] {
80+ getMissingExamplePaths ( displayName : string , allPaths : string [ ] ) : string [ ] {
8181 const examplesPattern = `\./${ displayName } /[\\w/]+Example`
8282 const [ normalExtension , shorthandExtension ] = [
8383 componentAPIs . children . fileSuffix ,
0 commit comments