mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-24 10:21:46 -04:00
fix linter warning
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user