undo changes which are no longer needed
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
507d493b60
commit
9c5f7492e3
|
@ -24,7 +24,6 @@ import Tooltip from './Tooltip';
|
||||||
|
|
||||||
interface ITooltipProps extends IProps {
|
interface ITooltipProps extends IProps {
|
||||||
title: string;
|
title: string;
|
||||||
tooltip?: React.ReactNode;
|
|
||||||
tooltipClassName?: string;
|
tooltipClassName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +52,7 @@ export default class AccessibleTooltipButton extends React.PureComponent<IToolti
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {title, children, tooltip, ...props} = this.props;
|
const {title, children, ...props} = this.props;
|
||||||
const tooltipClassName = classnames(
|
const tooltipClassName = classnames(
|
||||||
"mx_AccessibleTooltipButton_tooltip",
|
"mx_AccessibleTooltipButton_tooltip",
|
||||||
this.props.tooltipClassName,
|
this.props.tooltipClassName,
|
||||||
|
@ -62,7 +61,7 @@ export default class AccessibleTooltipButton extends React.PureComponent<IToolti
|
||||||
const tip = this.state.hover ? <Tooltip
|
const tip = this.state.hover ? <Tooltip
|
||||||
className="mx_AccessibleTooltipButton_container"
|
className="mx_AccessibleTooltipButton_container"
|
||||||
tooltipClassName={tooltipClassName}
|
tooltipClassName={tooltipClassName}
|
||||||
label={tooltip || title}
|
label={title}
|
||||||
/> : <div />;
|
/> : <div />;
|
||||||
return (
|
return (
|
||||||
<AccessibleButton {...props} onMouseOver={this.onMouseOver} onMouseOut={this.onMouseOut} aria-label={title}>
|
<AccessibleButton {...props} onMouseOver={this.onMouseOver} onMouseOut={this.onMouseOut} aria-label={title}>
|
||||||
|
|
Loading…
Reference in New Issue