@secondstaxorg/sscomp 1.7.15 → 1.7.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -30425,20 +30425,18 @@ const _jsxFileName = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\componen
30425
30425
  * Tooltip text to be displayed on an element
30426
30426
  */
30427
30427
  const Tooltip = (props) => {
30428
- const {tooltipPosition,children,tooltipContent,childElementId,tooltipVisible} = props;
30428
+ const {tooltipPosition,children,tooltipContent,childElementClassName} = props;
30429
30429
 
30430
30430
  React$1.useEffect(()=>{
30431
- if (tooltipVisible){
30432
- tippy(`#${tooltipVisible ? childElementId : ''}`,{
30433
- content:tooltipContent,
30434
- placement:tooltipPosition,
30435
- interactive:true
30436
- });
30437
- }
30438
- },[tooltipVisible]);
30431
+ tippy(`.${childElementClassName}`,{
30432
+ content:tooltipContent,
30433
+ placement:tooltipPosition,
30434
+ interactive:true
30435
+ });
30436
+ },[]);
30439
30437
 
30440
30438
  return (
30441
- React$1.createElement(TippyContainer, {__self: undefined, __source: {fileName: _jsxFileName, lineNumber: 25}}
30439
+ React$1.createElement(TippyContainer, {__self: undefined, __source: {fileName: _jsxFileName, lineNumber: 23}}
30442
30440
  , children
30443
30441
  )
30444
30442
  )