Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 4fdef94

Browse files
committed
addressed PR comments
1 parent dad7b59 commit 4fdef94

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

docs/src/components/ComponentDoc/ComponentProp/ComponentPropExtra.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import PropTypes from 'prop-types'
21
import * as React from 'react'
32
import { 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-
4437
export default ComponentPropExtra

docs/src/components/ComponentDoc/ComponentProp/ComponentPropFunctionSignature.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as React from 'react'
55
import { neverUpdate } from 'docs/src/hoc'
66
import 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

3232
const 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

0 commit comments

Comments
 (0)