fix(review): show generic Pothole Review heading
This commit is contained in:
@@ -17,7 +17,6 @@ const PROOF_STATUS_FILTERS: Array<{
|
|||||||
|
|
||||||
interface IssueReviewHeaderProps {
|
interface IssueReviewHeaderProps {
|
||||||
ticketLabel: string;
|
ticketLabel: string;
|
||||||
defectLabel: string;
|
|
||||||
currentIndex: number;
|
currentIndex: number;
|
||||||
total: number;
|
total: number;
|
||||||
proofStatus: ProofStatusFilter;
|
proofStatus: ProofStatusFilter;
|
||||||
@@ -29,7 +28,6 @@ interface IssueReviewHeaderProps {
|
|||||||
|
|
||||||
export function IssueReviewHeader({
|
export function IssueReviewHeader({
|
||||||
ticketLabel,
|
ticketLabel,
|
||||||
defectLabel,
|
|
||||||
currentIndex,
|
currentIndex,
|
||||||
total,
|
total,
|
||||||
proofStatus,
|
proofStatus,
|
||||||
@@ -54,7 +52,7 @@ export function IssueReviewHeader({
|
|||||||
<div className="min-w-0 space-y-1">
|
<div className="min-w-0 space-y-1">
|
||||||
<div className="flex flex-wrap items-center gap-2">
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
<h1 className="truncate text-2xl font-semibold tracking-tight">
|
<h1 className="truncate text-2xl font-semibold tracking-tight">
|
||||||
{defectLabel} Review
|
Repair Review
|
||||||
</h1>
|
</h1>
|
||||||
<Badge variant="secondary">{ticketLabel}</Badge>
|
<Badge variant="secondary">{ticketLabel}</Badge>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ export default function TicketReviewPage() {
|
|||||||
<div className="space-y-5">
|
<div className="space-y-5">
|
||||||
<IssueReviewHeader
|
<IssueReviewHeader
|
||||||
ticketLabel={ticket.ticket_name || ticket.id}
|
ticketLabel={ticket.ticket_name || ticket.id}
|
||||||
defectLabel="Repair"
|
|
||||||
currentIndex={0}
|
currentIndex={0}
|
||||||
total={0}
|
total={0}
|
||||||
proofStatus={proofStatus}
|
proofStatus={proofStatus}
|
||||||
@@ -256,7 +255,6 @@ export default function TicketReviewPage() {
|
|||||||
<main className="relative z-10 space-y-5 xl:flex xl:h-[calc(100vh-6.5rem)] xl:min-h-0 xl:flex-col xl:gap-5 xl:space-y-0 xl:overflow-hidden">
|
<main className="relative z-10 space-y-5 xl:flex xl:h-[calc(100vh-6.5rem)] xl:min-h-0 xl:flex-col xl:gap-5 xl:space-y-0 xl:overflow-hidden">
|
||||||
<IssueReviewHeader
|
<IssueReviewHeader
|
||||||
ticketLabel={ticket.ticket_name || ticket.id}
|
ticketLabel={ticket.ticket_name || ticket.id}
|
||||||
defectLabel={defectLabel}
|
|
||||||
currentIndex={activeIndex}
|
currentIndex={activeIndex}
|
||||||
total={totalCount}
|
total={totalCount}
|
||||||
proofStatus={proofStatus}
|
proofStatus={proofStatus}
|
||||||
|
|||||||
Reference in New Issue
Block a user