diff --git a/frontend/src/components/forms/add-board-form.tsx b/frontend/src/components/forms/add-board-form.tsx index 44be091..fca2414 100644 --- a/frontend/src/components/forms/add-board-form.tsx +++ b/frontend/src/components/forms/add-board-form.tsx @@ -8,15 +8,15 @@ const AddBoardForm = ({ defaultValues, }: { onClose: () => void; - onSubmit: (name: string, dueDate: string, description: string) => void; + onSubmit: (name: string, dueDate: string) => void; errors?: string; - defaultValues?: { name: string; dueDate: string; description: string }; + defaultValues?: { name: string; dueDate: string }; }) => { const [name, setName] = useState(defaultValues?.name || ""); const [dueDate, setDueDate] = useState(defaultValues?.dueDate || ""); - const [description, setDescription] = useState( - defaultValues?.description || "" - ); + // const [description, setDescription] = useState( + // defaultValues?.description || "" + // ); const cardRef = useRef(null); @@ -36,7 +36,7 @@ const AddBoardForm = ({ const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); - onSubmit(name, dueDate, description); + onSubmit(name, dueDate); }; return ( @@ -96,7 +96,7 @@ const AddBoardForm = ({ required /> -
+ {/*
@@ -107,7 +107,7 @@ const AddBoardForm = ({ className="block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-400" required /> -
+
*/}