change(ui) - xray - btn tooltip
This commit is contained in:
parent
030142f5c9
commit
3af03dcea7
1 changed files with 6 additions and 3 deletions
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue