Remove "Open" status badge from PR comment actions (#7338)
Remove the unused "Open" action state condition and its associated `statusBadgeOpen` class from presentation definitions.
This commit is contained in:
parent
8b69e41391
commit
5ba4e2454d
|
|
@ -1609,13 +1609,6 @@ function PRCommentActionBadge({
|
|||
</span>
|
||||
)
|
||||
}
|
||||
if (actionState === 'open') {
|
||||
return (
|
||||
<span className={presentation.statusBadgeOpen}>
|
||||
{translate('auto.components.right.sidebar.checks.panel.content.7c1f0a2b11', 'Open')}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
if (actionState === 'resolved') {
|
||||
return (
|
||||
<span className={presentation.statusBadgeResolved}>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ export type PRCommentPresentationClasses = {
|
|||
audienceTab: string
|
||||
audienceTabActive: string
|
||||
sectionTriageLabel: string
|
||||
statusBadgeOpen: string
|
||||
statusBadgeResolved: string
|
||||
statusBadgeQueued: string
|
||||
commentHeaderPrimary: string
|
||||
|
|
@ -160,8 +159,6 @@ export function getPRCommentPresentationClasses(
|
|||
'flex h-7 items-center justify-center gap-1 rounded-md px-1.5 text-[11px] font-medium text-muted-foreground transition-colors',
|
||||
audienceTabActive: 'bg-muted text-foreground',
|
||||
sectionTriageLabel: cn('px-3 pt-2', RESOLVED_SECTION_LABEL),
|
||||
statusBadgeOpen:
|
||||
'shrink-0 rounded border border-status-success-border bg-status-success-background px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-status-success',
|
||||
statusBadgeResolved:
|
||||
'shrink-0 rounded border border-border bg-muted px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground',
|
||||
statusBadgeQueued:
|
||||
|
|
@ -211,8 +208,6 @@ export function getPRCommentPresentationClasses(
|
|||
'flex h-7 items-center justify-center gap-1 rounded-md px-1.5 text-[11px] font-medium text-muted-foreground transition-colors',
|
||||
audienceTabActive: 'bg-muted text-foreground shadow-xs',
|
||||
sectionTriageLabel: cn('px-3 pt-1', RESOLVED_SECTION_LABEL),
|
||||
statusBadgeOpen:
|
||||
'shrink-0 rounded border border-status-success-border bg-status-success-background px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-status-success',
|
||||
statusBadgeResolved:
|
||||
'shrink-0 rounded border border-border bg-muted px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground',
|
||||
statusBadgeQueued:
|
||||
|
|
|
|||
Loading…
Reference in New Issue