Small fix to statistics

This commit is contained in:
Peter KW 2024-04-02 19:18:05 +02:00
parent 632676e3d2
commit 46eb3c76a8

View file

@ -38,7 +38,12 @@ function ProjectInfoModal(props: {
</div> </div>
<div className="border-2 border-black rounded-lg h-[8vh] text-left divide-y-2 flex flex-col overflow-auto mx-10"> <div className="border-2 border-black rounded-lg h-[8vh] text-left divide-y-2 flex flex-col overflow-auto mx-10">
<p className="p-2">Number of members: {users.length}</p> <p className="p-2">Number of members: {users.length}</p>
<p className="p-2">Total time reported: {totalTime.current}</p> <p className="p-2">
Total time reported:{" "}
{Math.floor(totalTime.current / 60 / 24) + " d "}
{Math.floor((totalTime.current / 60) % 24) + " h "}
{(totalTime.current % 60) + " m "}
</p>
</div> </div>
<div className="h-[6vh] p-7 text-center"> <div className="h-[6vh] p-7 text-center">
<h2 className="text-[20px] font-bold">Project members:</h2> <h2 className="text-[20px] font-bold">Project members:</h2>