From 09d90556436aaae553ea6cb6299a1298cc5853fb Mon Sep 17 00:00:00 2001 From: ahmed-Bazzara Date: Fri, 15 Feb 2019 08:56:26 +0100 Subject: [PATCH] tooltip component cleaned --- src/tooltip/index.jsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/tooltip/index.jsx b/src/tooltip/index.jsx index 61751c5..53e004d 100644 --- a/src/tooltip/index.jsx +++ b/src/tooltip/index.jsx @@ -1,18 +1,11 @@ import React from 'react'; import PropTypes from 'prop-types'; -const getPos = () => { - console.log(window.pageXOffset); - return { - left: window.pageXOffset, - top: window.pageYOffset - }; - -}; const Tooltip = ({ data, xPosition, yPosition }) => (

{data}