fix linter warning

This commit is contained in:
David Christofas
2022-07-04 18:11:27 +02:00
parent 530d8f3bda
commit 2f1cdfac62
2 changed files with 10 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ const Tooltip = ({children, ...other } = {}) => {
return <BaseTooltip {...other}><span>{children}</span></BaseTooltip>;
}
Tooltip.propTypes = {
children: PropTypes.node,
};
class Consent extends React.PureComponent {
componentDidMount() {
const { dispatch, hello, history, client } = this.props;

View File

@@ -1,4 +1,5 @@
import { withTranslation } from 'react-i18next';
import PropTypes from 'prop-types';
export const ERROR_LOGIN_VALIDATE_MISSINGUSERNAME = 'konnect.error.login.validate.missingUsername';
export const ERROR_LOGIN_VALIDATE_MISSINGPASSWORD = 'konnect.error.login.validate.missingPassword';
@@ -58,4 +59,9 @@ function ErrorMessageComponent(props) {
return f(messageDescriptor.defaultMessage, messageDescriptor.values);
}
ErrorMessageComponent.propTypes = {
error: PropTypes.object,
t: PropTypes.func,
values: PropTypes.any,
};
export const ErrorMessage = withTranslation()(ErrorMessageComponent);