From ff4ea478465060bc7dc451838ba2aa9ec62f79d2 Mon Sep 17 00:00:00 2001 From: Davenludd Date: Wed, 20 Mar 2024 13:51:22 +0100 Subject: [PATCH] Doc/Comments in AllTimeReportsInProject component --- frontend/src/Components/AllTimeReportsInProject.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/Components/AllTimeReportsInProject.tsx b/frontend/src/Components/AllTimeReportsInProject.tsx index 809e6ed..41307d3 100644 --- a/frontend/src/Components/AllTimeReportsInProject.tsx +++ b/frontend/src/Components/AllTimeReportsInProject.tsx @@ -1,11 +1,14 @@ //Info: This component is used to display all the time reports for a project. It will display the week number, //total time spent, and if the report has been signed or not. The user can click on a report to edit it. - -import React, { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import { WeeklyReport } from "../Types/goTypes"; import { Link, useParams } from "react-router-dom"; import { api } from "../API/API"; +/** + * Renders a component that displays all the time reports for a specific project. + * @returns JSX.Element representing the component. + */ function AllTimeReportsInProject(): JSX.Element { const { projectName } = useParams(); const [weeklyReports, setWeeklyReports] = useState([]);