Skip to content

Commit 5704d7c

Browse files
committed
Refactor EisenhowerMatrix component
1 parent 275738d commit 5704d7c

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

frontend/src/components/EisenhowerMatrix/Eisenhower.jsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { useState, useEffect } from "react";
2-
import { FiAlertCircle, FiClock, FiXCircle, FiCheckCircle } from "react-icons/fi";
2+
import {
3+
FiAlertCircle,
4+
FiClock,
5+
FiXCircle,
6+
FiCheckCircle,
7+
} from "react-icons/fi";
38
import { readTodoTasks } from "../../api/TaskApi";
49
import { axiosInstance } from "src/api/AxiosConfig";
510

@@ -26,7 +31,9 @@ function EachBlog({ name, colorCode, contentList, icon }) {
2631
};
2732

2833
return (
29-
<div className={`h-full text-left p-4 rounded-lg bg-white border border-gray-300 overflow-y-auto`}>
34+
<div
35+
className={`h-full text-left p-4 rounded-lg bg-white border border-gray-300 overflow-y-auto`}
36+
>
3037
<div className="flex" style={{ color: colorCode }}>
3138
<span className="mx-2 mt-1">{icon}</span>
3239
<span>{name}</span>
@@ -39,10 +46,14 @@ function EachBlog({ name, colorCode, contentList, icon }) {
3946
<input
4047
type="checkbox"
4148
checked={item.completed}
42-
className="checkbox mt-1 mr-2"
49+
className="checkbox mt-1 mr-2 bg-gray-300 "
4350
onChange={() => handleCheckboxChange(index)}
4451
/>
45-
<label className={`cursor-pointer ${item.completed ? "line-through text-gray-500" : ""}`}>
52+
<label
53+
className={`cursor-pointer ${
54+
item.completed ? "line-through text-gray-500" : ""
55+
}`}
56+
>
4657
{item.title}
4758
</label>
4859
</div>

0 commit comments

Comments
 (0)