mirror of
https://github.com/ansible/awx.git
synced 2026-02-12 23:24:48 -03:30
Integrate proptypes for our shared components.
- Fix unit tests. - Fix linter errors.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import {
|
||||
withRouter
|
||||
} from 'react-router-dom';
|
||||
@@ -55,4 +56,10 @@ class NavExpandableGroup extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
NavExpandableGroup.propTypes = {
|
||||
groupId: PropTypes.string.isRequired,
|
||||
groupTitle: PropTypes.string.isRequired,
|
||||
routes: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
};
|
||||
|
||||
export default withRouter(NavExpandableGroup);
|
||||
|
||||
Reference in New Issue
Block a user