diff --git a/src/views/DashboardProject/chatDashboard.js b/src/views/DashboardProject/chatDashboard.js index 0a1ef3e..b45bcdd 100644 --- a/src/views/DashboardProject/chatDashboard.js +++ b/src/views/DashboardProject/chatDashboard.js @@ -1,37 +1,35 @@ import React from 'react'; -const ChatDashboard = () => { +const ChatDashboard = (props) => { + const { dataParams } = props; + + const renderComment = (items) => { + return items.map((item, idx) => { + return ( +
+
+
+ {item.comment_by} +
+
+ {item.comment} +
+
+ {item.comment_created} +
+
+
+ ) + }) + } + + return (
-
Minutes of Meeting
+
COMMUNICATION
-
-
-
- Robert William -
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore Read More... -
-
- 14/01/22 14:21 -
-
-
-
-
-
- Jennifer lawrence -
-
- Curabitur lobortis tellus nibh, at tincidunt turpis viverra at. Integer aliquam in quam eu fringilla. Nullam eu mauris Read More... -
-
- 14/01/22 10:20 -
-
-
+ {renderComment(dataParams)}
); diff --git a/src/views/DashboardProject/index.js b/src/views/DashboardProject/index.js index a973d73..6b9feea 100644 --- a/src/views/DashboardProject/index.js +++ b/src/views/DashboardProject/index.js @@ -54,6 +54,7 @@ const DashboardProject = () => { const [PROJECTNAME, SET_PROJECTNAME] = useState([]) const [CURRENCYSYMBOL, SET_CURRENCYSYMBOL] = useState([]) const [BUDGETHEALTH, SET_BUDGETHEALTH] = useState([]) + const [COMMENT, SET_COMMENT] = useState([]) @@ -83,6 +84,7 @@ const DashboardProject = () => { SET_BUDGETHEALTH(resData.budget_health) SET_ACWP(resData.actualCost) SET_PROGRESS(resData.progress) + SET_COMMENT(resData.comment) } useEffect(() => { @@ -237,7 +239,8 @@ const DashboardProject = () => { */} - +