Fix eslint rules
[MAILPOET-1348]
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user