Skip to content

Commit 1490a42

Browse files
committed
see #203 : remove score, add formating option on date
1 parent fae5448 commit 1490a42

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

web/src/ui/pages/softwareDetails/PreviewTab.tsx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -414,19 +414,6 @@ export const PreviewTab = (props: Props) => {
414414
<div className={classes.section}>
415415
<p className={cx(fr.cx("fr-text--bold"), classes.item)}>
416416
{t("previewTab.repoMetadata")}
417-
{repoMetadata?.healthCheck?.score && (
418-
<Chip
419-
label={
420-
(
421-
Math.round(
422-
repoMetadata.healthCheck.score * 10000
423-
) / 100
424-
).toFixed(2) + " %"
425-
}
426-
color={scoreToLabel(repoMetadata.healthCheck.score)}
427-
style={{ marginLeft: "10px" }}
428-
/>
429-
)}
430417
</p>
431418
{repoMetadata?.healthCheck?.lastClosedIssue && (
432419
<p className={cx(fr.cx("fr-text--regular"), classes.item)}>
@@ -435,7 +422,8 @@ export const PreviewTab = (props: Props) => {
435422
</span>
436423
<span>
437424
{useFormattedDate({
438-
time: repoMetadata.healthCheck.lastClosedIssue
425+
time: repoMetadata.healthCheck.lastClosedIssue,
426+
showTime: false
439427
})}
440428
</span>
441429
</p>
@@ -449,7 +437,8 @@ export const PreviewTab = (props: Props) => {
449437
<span>
450438
{useFormattedDate({
451439
time: repoMetadata.healthCheck
452-
.lastClosedIssuePullRequest
440+
.lastClosedIssuePullRequest,
441+
showTime: false
453442
})}
454443
</span>
455444
</p>
@@ -461,7 +450,8 @@ export const PreviewTab = (props: Props) => {
461450
</span>
462451
<span>
463452
{useFormattedDate({
464-
time: repoMetadata.healthCheck.lastCommit
453+
time: repoMetadata.healthCheck.lastCommit,
454+
showTime: false
465455
})}
466456
</span>
467457
</p>

0 commit comments

Comments
 (0)