Files
karma/ui/src/Components/TooltipWrapper/index.js
Łukasz Mierzwa e2dc16b1b2 fix(ui): remove pointless prop definition
It's defined on Tooltip instead of the wrapper and it's not needed
2019-05-11 18:51:28 +01:00

20 lines
368 B
JavaScript

import React from "react";
import { Tooltip } from "react-tippy";
import "react-tippy/dist/tippy.css";
const TooltipWrapper = ({ children, ...props }) => (
<Tooltip
delay={[1000, 100]}
size="small"
touchHold={true}
style={{ display: "inline-block", maxWidth: "100%" }}
{...props}
>
{children}
</Tooltip>
);
export { TooltipWrapper };