Auto eslint fix

This commit is contained in:
James Barnsley
2019-09-05 15:36:11 +12:00
parent 4513a0d109
commit e4d53a2d35
126 changed files with 23283 additions and 23573 deletions

View File

@ -2,22 +2,21 @@
import React, { memo } from 'react';
import Icon from './Icon';
export default memo((props) => {
export default memo((props) => {
const handleClick = (e) => {
e.preventDefault();
e.stopPropagation();
props.onTrigger(e);
};
const handleClick = (e) => {
e.preventDefault();
e.stopPropagation();
props.onTrigger(e);
}
let className = 'context-menu-trigger mouse-contextable touch-contextable';
if (props.className) {
className += ` ${props.className}`;
}
let className = 'context-menu-trigger mouse-contextable touch-contextable'
if (props.className){
className += ' '+props.className
}
return (
<span className={className} onClick={e => handleClick(e)}>
<Icon name="more_horiz" />
</span>
);
return (
<span className={className} onClick={(e) => handleClick(e)}>
<Icon name="more_horiz" />
</span>
);
});