This repository was archived by the owner on Mar 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
docs/src/components/ComponentDoc/ComponentProp Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1- import PropTypes from 'prop-types'
21import * as React from 'react'
32import { Extendable } from 'types/utils'
43
@@ -35,10 +34,4 @@ const ComponentPropExtra = ({
3534 </ div >
3635)
3736
38- ComponentPropExtra . propTypes = {
39- children : PropTypes . node ,
40- inline : PropTypes . bool ,
41- title : PropTypes . node ,
42- }
43-
4437export default ComponentPropExtra
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as React from 'react'
55import { neverUpdate } from 'docs/src/hoc'
66import ComponentPropExtra , { ComponentPropExtraProps } from './ComponentPropExtra'
77
8- interface ComponentPropFunctionArg extends ComponentPropExtraProps {
8+ interface ComponentPropFunctionProps extends ComponentPropExtraProps {
99 name ?: string
1010 tags ?: {
1111 name ?: string
@@ -31,7 +31,7 @@ const rowStyle: any = {
3131
3232const getTagType = tag => ( tag . type ? ( tag . type . type === 'AllLiteral' ? 'any' : tag . type . name ) : '' )
3333
34- const ComponentPropFunctionSignature = ( { name, tags } : ComponentPropFunctionArg ) => {
34+ const ComponentPropFunctionSignature : React . SFC < ComponentPropFunctionProps > = ( { name, tags } ) => {
3535 const params = _ . filter ( tags , { title : 'param' } )
3636 const returns = _ . find ( tags , { title : 'returns' } )
3737
You can’t perform that action at this time.
0 commit comments