mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-01 21:51:48 -05:00
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';
|
||||
import { I18n } from '@lingui/react';
|
||||
import { t } from '@lingui/macro';
|
||||
@@ -58,4 +59,12 @@ class TowerLogo extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
TowerLogo.propTypes = {
|
||||
linkTo: PropTypes.string,
|
||||
};
|
||||
|
||||
TowerLogo.defaultProps = {
|
||||
linkTo: null,
|
||||
};
|
||||
|
||||
export default withRouter(TowerLogo);
|
||||
|
||||
Reference in New Issue
Block a user