Skip to content

Commit 3d8b52d

Browse files
committed
see #203 : remove score, add formating option on date
1 parent b9d6adf commit 3d8b52d

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

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

+6-16
Original file line numberDiff line numberDiff line change
@@ -401,19 +401,6 @@ export const PreviewTab = (props: Props) => {
401401
<div className={classes.section}>
402402
<p className={cx(fr.cx("fr-text--bold"), classes.item)}>
403403
{t("previewTab.repoMetadata")}
404-
{repoMetadata?.healthCheck?.score && (
405-
<Chip
406-
label={
407-
(
408-
Math.round(
409-
repoMetadata.healthCheck.score * 10000
410-
) / 100
411-
).toFixed(2) + " %"
412-
}
413-
color={scoreToLabel(repoMetadata.healthCheck.score)}
414-
style={{ marginLeft: "10px" }}
415-
/>
416-
)}
417404
</p>
418405
{repoMetadata?.healthCheck?.lastClosedIssue && (
419406
<p className={cx(fr.cx("fr-text--regular"), classes.item)}>
@@ -422,7 +409,8 @@ export const PreviewTab = (props: Props) => {
422409
</span>
423410
<span>
424411
{useFormattedDate({
425-
time: repoMetadata.healthCheck.lastClosedIssue
412+
time: repoMetadata.healthCheck.lastClosedIssue,
413+
showTime: false
426414
})}
427415
</span>
428416
</p>
@@ -436,7 +424,8 @@ export const PreviewTab = (props: Props) => {
436424
<span>
437425
{useFormattedDate({
438426
time: repoMetadata.healthCheck
439-
.lastClosedIssuePullRequest
427+
.lastClosedIssuePullRequest,
428+
showTime: false
440429
})}
441430
</span>
442431
</p>
@@ -448,7 +437,8 @@ export const PreviewTab = (props: Props) => {
448437
</span>
449438
<span>
450439
{useFormattedDate({
451-
time: repoMetadata.healthCheck.lastCommit
440+
time: repoMetadata.healthCheck.lastCommit,
441+
showTime: false
452442
})}
453443
</span>
454444
</p>

0 commit comments

Comments
 (0)