diff --git a/src/renderer/components/organization/GoalCreator.tsx b/src/renderer/components/organization/GoalCreator.tsx index 693e4194..fc78153e 100644 --- a/src/renderer/components/organization/GoalCreator.tsx +++ b/src/renderer/components/organization/GoalCreator.tsx @@ -1,8 +1,5 @@ -import { useState } from "react"; -import { Target } from "@phosphor-icons/react"; import type { AgentRecord, GoalRecord } from "@shared/types"; -import { ActionButton, Input, Select, TextArea } from "../ui"; -import { useT } from "../../i18n"; +import { GoalForm } from "./goal-form"; export function GoalCreator({ companyId, @@ -15,62 +12,5 @@ export function GoalCreator({ goals: GoalRecord[]; onSaved: () => Promise; }) { - const t = useT(); - const [title, setTitle] = useState(""); - const [description, setDescription] = useState(""); - const [ownerAgentId, setOwnerAgentId] = useState(agents[0]?.id ?? ""); - const [parentId, setParentId] = useState(""); - return ( -
- -