mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): remove pointless prop definition
It's defined on Tooltip instead of the wrapper and it's not needed
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
import { Tooltip } from "react-tippy";
|
||||
|
||||
@@ -10,14 +9,11 @@ const TooltipWrapper = ({ children, ...props }) => (
|
||||
delay={[1000, 100]}
|
||||
size="small"
|
||||
touchHold={true}
|
||||
style={{ display: "inline-block", "maxWidth": "100%" }}
|
||||
style={{ display: "inline-block", maxWidth: "100%" }}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</Tooltip>
|
||||
);
|
||||
Tooltip.propTypes = {
|
||||
children: PropTypes.node.isRequired
|
||||
};
|
||||
|
||||
export { TooltipWrapper };
|
||||
|
||||
Reference in New Issue
Block a user