From c601d5dfc441b6813506f0f1c8c19affd174c97e Mon Sep 17 00:00:00 2001 From: SovannarithHayGH <163391427+SovannarithHayGH@users.noreply.github.com> Date: Sun, 1 Sep 2024 18:06:29 +1000 Subject: [PATCH] Again removing the import React that caused the test to failed. --- frontend/src/components/kanbans/kanban-list-view.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/kanbans/kanban-list-view.tsx b/frontend/src/components/kanbans/kanban-list-view.tsx index fe6cf9e..6b4977a 100644 --- a/frontend/src/components/kanbans/kanban-list-view.tsx +++ b/frontend/src/components/kanbans/kanban-list-view.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import KanbanAPI from "../../api/kanbanAPI"; import { useNavigate } from "react-router-dom"; import { KanbanBoard } from "../../utilities/types"; @@ -29,7 +29,6 @@ export default function KanbanListView() { const handleAddBoard = (name: string, dueDate: string) => { console.log("Board Name:", name, "Due Date:", dueDate); - // Here, you can implement the logic to add the new board to your state or API }; return ( @@ -68,8 +67,8 @@ export default function KanbanListView() { {/* AddBoardForm Modal */} setIsModalOpen(false)} // Close the modal - onSubmit={handleAddBoard} // Handle form submission + onClose={() => setIsModalOpen(false)} + onSubmit={handleAddBoard} /> );