refactor[ReactTooltipComponent]: Move type TooltipProps to types directorie

This commit is contained in:
Igor Carvalho 2023-07-19 17:11:56 -03:00
commit 83772eeefd
2 changed files with 13 additions and 12 deletions

View file

@ -4,18 +4,7 @@ import React from "react";
import { Tooltip as ReactTooltip } from "react-tooltip";
import "react-tooltip/dist/react-tooltip.css";
import { classNames } from "../../utils/utils";
type TooltipProps = {
selector: string;
content?: string;
disabled?: boolean;
htmlContent?: React.ReactNode;
className?: string; // This should use !impornant to override the default styles eg: '!bg-white'
position?: "top" | "right" | "bottom" | "left";
clickable?: boolean;
children: React.ReactNode;
delayShow?: number;
};
import { TooltipProps } from "../../types/components";
const TooltipReact: FC<TooltipProps> = ({
selector,

View file

@ -179,3 +179,15 @@ export type InputProps = {
setDescription: (description: string) => void;
updateFlow: (flow: { id: string; name: string }) => void;
};
export type TooltipProps = {
selector: string;
content?: string;
disabled?: boolean;
htmlContent?: React.ReactNode;
className?: string; // This should use !impornant to override the default styles eg: '!bg-white'
position?: "top" | "right" | "bottom" | "left";
clickable?: boolean;
children: React.ReactNode;
delayShow?: number;
};