From 0cd56cf8ba9b56e9fcfa9169355de2823f6b6b90 Mon Sep 17 00:00:00 2001 From: charlesntwari Date: Wed, 4 Oct 2023 15:00:59 +0200 Subject: [PATCH] fix-trainee-dashbord -modifying trainee dashbord designs --- src/components/TraineeDashboardChart.tsx | 53 ++++++--- src/components/ViewComment.tsx | 12 +- src/pages/TraineeDashboard.tsx | 141 +++++++++++------------ 3 files changed, 116 insertions(+), 90 deletions(-) diff --git a/src/components/TraineeDashboardChart.tsx b/src/components/TraineeDashboardChart.tsx index 2aeefa1f3..c30d1f600 100644 --- a/src/components/TraineeDashboardChart.tsx +++ b/src/components/TraineeDashboardChart.tsx @@ -1,9 +1,16 @@ /* eslint-disable react/function-component-definition */ /* eslint-disable import/no-extraneous-dependencies */ - import React from 'react'; -import { LineChart, Line, CartesianGrid, XAxis, YAxis, Tooltip, Legend } from 'recharts'; +import { + LineChart, + Line, + CartesianGrid, + XAxis, + YAxis, + Tooltip, + Legend, +} from 'recharts'; interface TableRow { sprint: number; @@ -28,24 +35,42 @@ const TraineeChart: React.FC = ({ barChartData }) => { })) .sort((a, b) => a.name - b.name); - const xAxisTickValues = chartData.map((entry) => entry.name); - return ( -
- - - - +
+ - - + + - + + + + +
); }; export default TraineeChart; - - diff --git a/src/components/ViewComment.tsx b/src/components/ViewComment.tsx index 310ded28b..30230373b 100644 --- a/src/components/ViewComment.tsx +++ b/src/components/ViewComment.tsx @@ -39,23 +39,27 @@ function Comment({ remark }: CommentProps) { {isModalOpen &&
} close(e)} >
{remark ? ( -
+

From Coordinator:

{remark}
) : ( -

No comments provided

+

+ No comments provided +

)}