Skip to content

Commit

Permalink
Again removing the import React that caused the test to failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
SovannarithHayGH committed Sep 1, 2024
1 parent 3dec0e2 commit c601d5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/components/kanbans/kanban-list-view.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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 (
Expand Down Expand Up @@ -68,8 +67,8 @@ export default function KanbanListView() {
{/* AddBoardForm Modal */}
<AddBoardForm
isOpen={isModalOpen}
onClose={() => setIsModalOpen(false)} // Close the modal
onSubmit={handleAddBoard} // Handle form submission
onClose={() => setIsModalOpen(false)}
onSubmit={handleAddBoard}
/>
</div>
);
Expand Down

0 comments on commit c601d5d

Please sign in to comment.