refactor[baseModal]: Move baseModal types to types directorie
This commit is contained in:
parent
bfee2ffe70
commit
f990b0e39b
2 changed files with 5 additions and 3 deletions
|
|
@ -10,9 +10,7 @@ import {
|
||||||
DialogTrigger,
|
DialogTrigger,
|
||||||
} from "../../components/ui/dialog";
|
} from "../../components/ui/dialog";
|
||||||
import { PopUpContext } from "../../contexts/popUpContext";
|
import { PopUpContext } from "../../contexts/popUpContext";
|
||||||
|
import { ContentProps, HeaderProps } from "../../types/components";
|
||||||
type ContentProps = { children: ReactNode };
|
|
||||||
type HeaderProps = { children: ReactNode; description: string };
|
|
||||||
|
|
||||||
const Content: React.FC<ContentProps> = ({ children }) => {
|
const Content: React.FC<ContentProps> = ({ children }) => {
|
||||||
return <div className="h-full w-full">{children}</div>;
|
return <div className="h-full w-full">{children}</div>;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ import { ReactElement, ReactNode } from "react";
|
||||||
import { APIClassType } from "../api";
|
import { APIClassType } from "../api";
|
||||||
import { NodeDataType } from "../flow/index";
|
import { NodeDataType } from "../flow/index";
|
||||||
import { typesContextType } from "../typesContext";
|
import { typesContextType } from "../typesContext";
|
||||||
|
|
||||||
export type InputComponentType = {
|
export type InputComponentType = {
|
||||||
value: string;
|
value: string;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
|
|
@ -195,3 +196,6 @@ export type TooltipProps = {
|
||||||
export type LoadingComponentProps = {
|
export type LoadingComponentProps = {
|
||||||
remSize: number;
|
remSize: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ContentProps = { children: ReactNode };
|
||||||
|
export type HeaderProps = { children: ReactNode; description: string };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue