Skip to content
Snippets Groups Projects
Commit f7190882 authored by OUKASSOU Anas's avatar OUKASSOU Anas
Browse files

Merge branch 'feature/manage-tasks' into 'main'

Feature/manage tasks

See merge request !10
parents 2b7efad9 4901919e
No related branches found
No related tags found
1 merge request!10Feature/manage tasks
......@@ -30,7 +30,7 @@ export default function TaskItem({ task }) {
/>
<label
htmlFor={task.id}
className="text-lg">
className={`text-lg ${task.isCompleted ? 'line-through text-gray-400' : ''}`}>
{task.name}
</label>
<button
......
......@@ -21,16 +21,14 @@ export default function Todolist() {
<div>
<h1 className="text-3xl font-bold text-left mb-6">Today</h1>
</div>
<div>
<Link to="/" className="text-blue-600">Home</Link>
</div>
<div>
<AddTaskButton onClick={addTask}/>
</div>
<div>
<TaskList
tasks={tasks}
/>
{tasks.length > 0 ? (
<TaskList tasks={tasks}/>
): "You are done for the day !"}
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment