feat: add missing propTypes
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
export default function TabPanel(props) {
|
||||
const { children, value, index, ...other } = props;
|
||||
return (
|
||||
@@ -7,3 +9,9 @@ export default function TabPanel(props) {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
TabPanel.propTypes = {
|
||||
children: PropTypes.element.isRequired,
|
||||
value: PropTypes.number.isRequired,
|
||||
index: PropTypes.number.isRequired,
|
||||
};
|
||||
|
Reference in New Issue
Block a user