11/* eslint-disable react/no-find-dom-node */
2- import React , { Component } from 'react' ;
3- import { findDOMNode } from 'react-dom' ;
2+ import React , { Component } from 'react' ;
3+ import { findDOMNode } from 'react-dom' ;
44import T from 'prop-types' ;
5- import { TooltipContext } from './utils' ;
6- import { callAll } from './utils' ;
5+ import { TooltipContext } from './utils' ;
6+ import { callAll } from './utils' ;
77
88const MUTATION_OBSERVER_CONFIG = {
99 childList : true ,
@@ -75,7 +75,7 @@ export default class Tooltip extends Component {
7575 document . removeEventListener ( 'contextmenu' , this . _handleOutsideRightClick ) ;
7676
7777 componentDidMount ( ) {
78- const { trigger } = this . props ;
78+ const { trigger} = this . props ;
7979 const observer = ( this . observer = new MutationObserver ( ( ) => {
8080 this . props . scheduleUpdate ( ) ;
8181 } ) ) ;
@@ -95,7 +95,7 @@ export default class Tooltip extends Component {
9595 }
9696
9797 componentWillUnmount ( ) {
98- const { trigger } = this . props ;
98+ const { trigger} = this . props ;
9999 this . observer . disconnect ( ) ;
100100
101101 if ( trigger === 'click' || trigger === 'right-click' ) {
@@ -123,15 +123,15 @@ export default class Tooltip extends Component {
123123
124124 getArrowProps = ( props = { } ) => ( {
125125 ...props ,
126- style : { ...props . style , ...this . props . arrowProps . style }
126+ style : { ...props . style , ...this . props . arrowProps . style }
127127 } ) ;
128128
129129 getTooltipProps = ( props = { } ) => {
130130 const isHoverTriggered = this . props . trigger === 'hover' ;
131131
132132 return {
133133 ...props ,
134- style : { ...props . style , ...this . props . style } ,
134+ style : { ...props . style , ...this . props . style } ,
135135 onMouseEnter : callAll (
136136 isHoverTriggered && this . props . clearScheduled ,
137137 props . onMouseEnter
@@ -144,7 +144,7 @@ export default class Tooltip extends Component {
144144 } ;
145145
146146 render ( ) {
147- const { arrowProps, placement, tooltip, innerRef } = this . props ;
147+ const { arrowProps, placement, tooltip, innerRef} = this . props ;
148148
149149 return (
150150 < TooltipContext . Provider
0 commit comments