refactor[baseModal]: Move baseModal types to types directorie

This commit is contained in:
Igor Carvalho 2023-07-19 18:01:15 -03:00
commit f990b0e39b
2 changed files with 5 additions and 3 deletions

View file

@ -10,9 +10,7 @@ import {
DialogTrigger,
} from "../../components/ui/dialog";
import { PopUpContext } from "../../contexts/popUpContext";
type ContentProps = { children: ReactNode };
type HeaderProps = { children: ReactNode; description: string };
import { ContentProps, HeaderProps } from "../../types/components";
const Content: React.FC<ContentProps> = ({ children }) => {
return <div className="h-full w-full">{children}</div>;

View file

@ -2,6 +2,7 @@ import { ReactElement, ReactNode } from "react";
import { APIClassType } from "../api";
import { NodeDataType } from "../flow/index";
import { typesContextType } from "../typesContext";
export type InputComponentType = {
value: string;
disabled?: boolean;
@ -195,3 +196,6 @@ export type TooltipProps = {
export type LoadingComponentProps = {
remSize: number;
};
export type ContentProps = { children: ReactNode };
export type HeaderProps = { children: ReactNode; description: string };