🔨 refactor(formModal/index.tsx): remove unused imports and clean up code formatting
The commit removes unused imports and cleans up the code formatting in the formModal/index.tsx file. This improves code readability and reduces unnecessary clutter.
This commit is contained in:
parent
37025bdf82
commit
32d0cc9092
1 changed files with 10 additions and 29 deletions
|
|
@ -4,13 +4,7 @@ import { alertContext } from "../../contexts/alertContext";
|
||||||
import { classNames, validateNodes } from "../../utils";
|
import { classNames, validateNodes } from "../../utils";
|
||||||
import { typesContext } from "../../contexts/typesContext";
|
import { typesContext } from "../../contexts/typesContext";
|
||||||
import ChatMessage from "./chatMessage";
|
import ChatMessage from "./chatMessage";
|
||||||
import {
|
import { TerminalSquare, MessageSquare, Variable, Eraser } from "lucide-react";
|
||||||
TerminalSquare,
|
|
||||||
MessageSquare,
|
|
||||||
Variable,
|
|
||||||
Eraser,
|
|
||||||
MessageSquarePlus,
|
|
||||||
} from "lucide-react";
|
|
||||||
import { sendAllProps } from "../../types/api";
|
import { sendAllProps } from "../../types/api";
|
||||||
import { ChatMessageType } from "../../types/chat";
|
import { ChatMessageType } from "../../types/chat";
|
||||||
import ChatInput from "./chatInput";
|
import ChatInput from "./chatInput";
|
||||||
|
|
@ -25,7 +19,6 @@ import {
|
||||||
DialogTrigger,
|
DialogTrigger,
|
||||||
} from "../../components/ui/dialog";
|
} from "../../components/ui/dialog";
|
||||||
import { CHAT_FORM_DIALOG_SUBTITLE } from "../../constants";
|
import { CHAT_FORM_DIALOG_SUBTITLE } from "../../constants";
|
||||||
import { Label } from "../../components/ui/label";
|
|
||||||
import { TabsContext } from "../../contexts/tabsContext";
|
import { TabsContext } from "../../contexts/tabsContext";
|
||||||
import {
|
import {
|
||||||
Accordion,
|
Accordion,
|
||||||
|
|
@ -36,14 +29,6 @@ import {
|
||||||
import { Textarea } from "../../components/ui/textarea";
|
import { Textarea } from "../../components/ui/textarea";
|
||||||
import { Badge } from "../../components/ui/badge";
|
import { Badge } from "../../components/ui/badge";
|
||||||
import ToggleShadComponent from "../../components/toggleShadComponent";
|
import ToggleShadComponent from "../../components/toggleShadComponent";
|
||||||
import Dropdown from "../../components/dropdownComponent";
|
|
||||||
import {
|
|
||||||
DropdownMenu,
|
|
||||||
DropdownMenuContent,
|
|
||||||
DropdownMenuItem,
|
|
||||||
DropdownMenuTrigger,
|
|
||||||
} from "../../components/ui/dropdown-menu";
|
|
||||||
import { Button } from "../../components/ui/button";
|
|
||||||
|
|
||||||
export default function FormModal({
|
export default function FormModal({
|
||||||
flow,
|
flow,
|
||||||
|
|
@ -406,22 +391,18 @@ export default function FormModal({
|
||||||
|
|
||||||
<div className="flex h-[80vh] w-full mt-2 ">
|
<div className="flex h-[80vh] w-full mt-2 ">
|
||||||
<div className="w-2/5 h-full overflow-auto scrollbar-hide flex flex-col justify-start mr-6">
|
<div className="w-2/5 h-full overflow-auto scrollbar-hide flex flex-col justify-start mr-6">
|
||||||
<div className="flex py-2 items-center">
|
<div className="flex py-2 items-center">
|
||||||
<Variable className="w-4 h-4 mr-1 text-primary"></Variable>
|
<Variable className="w-4 h-4 mr-1 text-primary"></Variable>
|
||||||
<span className="text-md font-semibold text-primary">
|
<span className="text-md font-semibold text-primary">
|
||||||
Input Variables
|
Input Variables
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex justify-between items-center">
|
<div className="flex justify-between items-center">
|
||||||
<div className="flex mr-2.5 py-2 items-center">
|
<div className="flex mr-2.5 py-2 items-center">
|
||||||
<span className="text-sm font-semibold text-primary">
|
<span className="text-sm text-primary">Name</span>
|
||||||
Name
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="flex mr-2.5 py-2 items-center">
|
<div className="flex mr-2.5 py-2 items-center">
|
||||||
<span className="text-sm font-semibold text-primary">
|
<span className="text-sm text-primary">Chat Input</span>
|
||||||
Chat Input
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Accordion type="multiple" className="w-full">
|
<Accordion type="multiple" className="w-full">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue