Fix eslint rules

[MAILPOET-1348]
This commit is contained in:
Pavel Dohnal
2018-04-18 17:25:59 +01:00
parent 1635c3aac3
commit 2b1eafc16f

View File

@@ -1,6 +1,7 @@
import React from 'react';
import classNames from 'classnames';
import ReactTooltip from 'react-tooltip';
import PropTypes from 'prop-types';
function Badge(props) {
const badgeClasses = classNames(
@@ -24,7 +25,7 @@ function Badge(props) {
{ tooltip && (
<ReactTooltip
place="right"
multiline={true}
multiline
id={tooltipId}
/>
) }
@@ -32,4 +33,18 @@ function Badge(props) {
);
}
Badge.propTypes = {
name: PropTypes.string.isRequired,
tooltip: PropTypes.string,
tooltipId: PropTypes.string,
type: PropTypes.string,
};
Badge.defaultProps = {
type: undefined,
tooltipId: undefined,
tooltip: undefined,
};
export default Badge;