mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashfolders: Add className to Tooltip component
This commit is contained in:
@@ -4,6 +4,7 @@ import { Manager, Popper, Arrow } from 'react-popper';
|
||||
interface IwithTooltipProps {
|
||||
placement?: string;
|
||||
content: string | ((props: any) => JSX.Element);
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function withTooltip(WrappedComponent) {
|
||||
@@ -39,10 +40,10 @@ export default function withTooltip(WrappedComponent) {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { content } = this.props;
|
||||
const { content, className } = this.props;
|
||||
|
||||
return (
|
||||
<Manager className="popper__manager">
|
||||
<Manager className={`popper__manager ${className || ''}`}>
|
||||
<WrappedComponent {...this.props} tooltipSetState={this.setState} />
|
||||
{this.state.show ? (
|
||||
<Popper placement={this.state.placement} className="popper">
|
||||
|
||||
Reference in New Issue
Block a user