fix(ui): убрать недостоверную шкалу срока сертификата

This commit is contained in:
Denozordec committed 2026-10-01 13:28:19 +07:00
1 parent f99612f6aa
commit bb74eae64c
3 files changed
+8 -38

No files matched your search

@@ -20,7 +20,6 @@ import {
import { DataGridSortHeader } from "@/components/data-grids/shared/data-grid-sort-header"
import {
CertificateExpandedDetail,
daysLeftBar,
} from "@/components/data-grids/certificate-expanded-detail"
import { EmptyState } from "@/components/empty-state"
import {
@@ -65,7 +64,6 @@ function daysLeftColor(days: number): string {
}
function CertDaysCell({ cert }: { cert: CertificateDto }) {
const pct = daysLeftBar(cert.daysLeft)
return (
<>
<div className="flex items-center justify-between text-xs mb-1">
@@ -74,19 +72,6 @@ function CertDaysCell({ cert }: { cert: CertificateDto }) {
</span>
<span className="text-muted-foreground text-[10px]">{cert.validUntil}</span>
</div>
<div className="h-1.5 bg-muted rounded-full overflow-hidden">
<div
className={cn(
"h-full rounded-full",
cert.daysLeft < 0 || cert.daysLeft <= 7
? "bg-red-500"
: cert.daysLeft <= 30
? "bg-amber-500"
: "bg-emerald-500",
)}
style={{ width: `${pct}%` }}
/>
</div>
</>
)
}