Skip to content

Commit

Permalink
feat: Add deprecation prop to component doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 7, 2020
1 parent 0a785fb commit 873ae98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useComponentDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const extractPropTypes = (component) => {
return {
name,
description: propDocs.text,
deprecation: propDocs.tags.deprecated?.[0] ?? null,
isRequired: propMeta.some((item) => item.name === 'isRequired'),
type: {
meta: type,
Expand Down

0 comments on commit 873ae98

Please sign in to comment.