change(ui) - xray - btn tooltip

This commit is contained in:
Shekar Siri 2022-08-19 11:09:42 +02:00
parent 030142f5c9
commit 3af03dcea7

View file

@ -1,6 +1,7 @@
import React from 'react';
import stl from './xrayButton.module.css';
import cn from 'classnames';
import { Popup } from 'UI';
interface Props {
onClick?: () => void;
@ -9,9 +10,11 @@ interface Props {
function XRayButton(props: Props) {
const { isActive } = props;
return (
<button className={cn(stl.wrapper, { [stl.default] : !isActive, [stl.active] : isActive})} onClick={props.onClick}>
X-RAY
</button>
<Popup content="Get a quick overview on the issues in this replay." delay={0} disabled={isActive}>
<button className={cn(stl.wrapper, { [stl.default] : !isActive, [stl.active] : isActive})} onClick={props.onClick}>
X-RAY
</button>
</Popup>
);
}