-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskBoard.jsx
More file actions
41 lines (37 loc) · 1 KB
/
Copy pathTaskBoard.jsx
File metadata and controls
41 lines (37 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from "react";
const tasks = {
todo: [
{ id: 1, title: "Create dashboard layout", priority: "High" },
{ id: 2, title: "Review API requirements", priority: "Medium" },
],
progress: [
{ id: 3, title: "Build user management", priority: "High" },
{ id: 4, title: "Update project documentation", priority: "Low" },
],
completed: [
{ id: 5, title: "Set up project structure", priority: "Medium" },
],
};
export default function TaskBoard() {
return (
<main>
<header>
<h1>Project Tasks</h1>
<p>Organize tasks, priorities, and project progress.</p>
</header>
<section>
{Object.entries(tasks).map(([status, items]) => (
<div key={status}>
<h2>{status}</h2>
{items.map((task) => (
<article key={task.id}>
<h3>{task.title}</h3>
<span>{task.priority}</span>
</article>
))}
</div>
))}
</section>
</main>
);
}