From 92bc65ce2fb50ef4942a2ca83b33e05ee3fbe48e Mon Sep 17 00:00:00 2001 From: sosokker Date: Thu, 16 Nov 2023 23:27:02 +0700 Subject: [PATCH] Update Eisenhower Matrix --- .../EisenhowerMatrix/Eisenhower.jsx | 62 +++++++++++++++---- frontend/src/components/profilePage.jsx | 2 +- 2 files changed, 52 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/EisenhowerMatrix/Eisenhower.jsx b/frontend/src/components/EisenhowerMatrix/Eisenhower.jsx index c300236..8dc159a 100644 --- a/frontend/src/components/EisenhowerMatrix/Eisenhower.jsx +++ b/frontend/src/components/EisenhowerMatrix/Eisenhower.jsx @@ -1,25 +1,65 @@ import React from "react"; +import { FiAlertCircle, FiClock, FiXCircle, FiCheckCircle } from "react-icons/fi"; -function EachBlog({ name, colorCode }) { +function EachBlog({ name, colorCode, contentList, icon }) { return ( -
-
- {name} +
+
+ {icon} + {name} +
+
+
+ {contentList.length === 0 ? ( +

No tasks

+ ) : ( + contentList.map((item, index) => ( +
+ + +
+ )) + )}
-
Content goes here
); } function Eisenhower() { + const contentList_ui = [ + { text: "Complete report for the meeting", checked: true }, + { text: "Review project proposal", checked: false }, + { text: "Submit expense report", checked: false }, + { text: "Complete report for the meeting", checked: true }, + { text: "Review project proposal", checked: false }, + { text: "Submit expense report", checked: false }, + { text: "Complete report for the meeting", checked: true }, + { text: "Review project proposal", checked: false }, + { text: "Submit expense report", checked: false }, + ]; + + const contentList_uni = []; + const contentList_nui = []; + const contentList_nuni = []; + return ( -
-

The Eisenhower Matrix

+
- - - - + } contentList={contentList_ui} /> + } contentList={contentList_uni} /> + } + contentList={contentList_nui} + /> + } + contentList={contentList_nuni} + />
); diff --git a/frontend/src/components/profilePage.jsx b/frontend/src/components/profilePage.jsx index 2f00049..4b0d0b4 100644 --- a/frontend/src/components/profilePage.jsx +++ b/frontend/src/components/profilePage.jsx @@ -4,7 +4,7 @@ import ProfileUpdateComponent from "./ProfileUpdateComponent"; function ProfileUpdatePage() { return (
-
+
Username
Sirin