fix linter warning
This commit is contained in:
2 files changed
+10
No files matched your search
@@ -57,6 +57,10 @@ const Tooltip = ({children, ...other } = {}) => {
|
|||||||
return <BaseTooltip {...other}><span>{children}</span></BaseTooltip>;
|
return <BaseTooltip {...other}><span>{children}</span></BaseTooltip>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Tooltip.propTypes = {
|
||||||
|
children: PropTypes.node,
|
||||||
|
};
|
||||||
|
|
||||||
class Consent extends React.PureComponent {
|
class Consent extends React.PureComponent {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { dispatch, hello, history, client } = this.props;
|
const { dispatch, hello, history, client } = this.props;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { withTranslation } from 'react-i18next';
|
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_MISSINGUSERNAME = 'konnect.error.login.validate.missingUsername';
|
||||||
export const ERROR_LOGIN_VALIDATE_MISSINGPASSWORD = 'konnect.error.login.validate.missingPassword';
|
export const ERROR_LOGIN_VALIDATE_MISSINGPASSWORD = 'konnect.error.login.validate.missingPassword';
|
||||||
@@ -58,4 +59,9 @@ function ErrorMessageComponent(props) {
|
|||||||
return f(messageDescriptor.defaultMessage, messageDescriptor.values);
|
return f(messageDescriptor.defaultMessage, messageDescriptor.values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ErrorMessageComponent.propTypes = {
|
||||||
|
error: PropTypes.object,
|
||||||
|
t: PropTypes.func,
|
||||||
|
values: PropTypes.any,
|
||||||
|
};
|
||||||
export const ErrorMessage = withTranslation()(ErrorMessageComponent);
|
export const ErrorMessage = withTranslation()(ErrorMessageComponent);
|
||||||
Reference in new issue
Block a user