Skip to content

Commit 5896531

Browse files
authored
Fix linting error on unused required (#193)
1 parent e8ae35e commit 5896531

File tree

1 file changed

+6
-1
lines changed
  • packages/pretty-proptypes/src/PropsTable

1 file changed

+6
-1
lines changed

packages/pretty-proptypes/src/PropsTable/PropRow.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ export default class Prop extends Component<PropProps> {
1919
render() {
2020
let { shapeComponent: ShapeComponent, ...commonProps } = this.props;
2121

22-
let { defaultValue, description, name, required, type, components } = commonProps;
22+
/**
23+
* TODO: extract + use `required` to display whether the prop is required.
24+
* Other layouts already do.
25+
* https://github.com/atlassian/extract-react-types/issues/192
26+
*/
27+
let { defaultValue, description, name, type, components } = commonProps;
2328

2429
return (
2530
<Fragment>

0 commit comments

Comments
 (0)