refactor[EditFlowSettingsComponent]: Move type InputProps to types directorie

This commit is contained in:
Igor Carvalho 2023-07-19 17:05:40 -03:00
commit 7ca0f8d60d
2 changed files with 12 additions and 11 deletions

View file

@ -2,17 +2,7 @@ import React, { ChangeEvent, useState } from "react";
import { Input } from "../../components/ui/input";
import { Label } from "../../components/ui/label";
import { Textarea } from "../../components/ui/textarea";
type InputProps = {
name: string | null;
description: string | null;
maxLength?: number;
flows: Array<{ id: string; name: string }>;
tabId: string;
setName: (name: string) => void;
setDescription: (description: string) => void;
updateFlow: (flow: { id: string; name: string }) => void;
};
import { InputProps } from "../../types/components";
export const EditFlowSettings: React.FC<InputProps> = ({
name,

View file

@ -168,3 +168,14 @@ export type IconComponentProps = {
className: string;
iconColor?: string;
};
export type InputProps = {
name: string | null;
description: string | null;
maxLength?: number;
flows: Array<{ id: string; name: string }>;
tabId: string;
setName: (name: string) => void;
setDescription: (description: string) => void;
updateFlow: (flow: { id: string; name: string }) => void;
};