Округление процентов в группах до целого
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m7s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m7s
This commit is contained in:
@@ -418,7 +418,7 @@ function CurrentWeek({ onProjectClick, data, loading, error, onRetry, allProject
|
||||
<div className="space-y-6">
|
||||
<PriorityGroup
|
||||
title="Главный"
|
||||
subtitle={`${mainProgress.toFixed(1)}%`}
|
||||
subtitle={`${Math.round(mainProgress)}%`}
|
||||
projects={priorityGroups.main}
|
||||
allProjects={allProjects}
|
||||
onProjectClick={onProjectClick}
|
||||
@@ -426,7 +426,7 @@ function CurrentWeek({ onProjectClick, data, loading, error, onRetry, allProject
|
||||
|
||||
<PriorityGroup
|
||||
title="Важные"
|
||||
subtitle={`${importantProgress.toFixed(1)}%`}
|
||||
subtitle={`${Math.round(importantProgress)}%`}
|
||||
projects={priorityGroups.important}
|
||||
allProjects={allProjects}
|
||||
onProjectClick={onProjectClick}
|
||||
@@ -434,7 +434,7 @@ function CurrentWeek({ onProjectClick, data, loading, error, onRetry, allProject
|
||||
|
||||
<PriorityGroup
|
||||
title="Остальные"
|
||||
subtitle={`${othersProgress.toFixed(1)}%`}
|
||||
subtitle={`${Math.round(othersProgress)}%`}
|
||||
projects={priorityGroups.others}
|
||||
allProjects={allProjects}
|
||||
onProjectClick={onProjectClick}
|
||||
|
||||
Reference in New Issue
Block a user