Skip to content

Commit ccedfb6

Browse files
authored
ORV2-5095 - Label update discrepancies (#2179)
Co-authored-by: GlenAOT <160973940+GlenAOT@users.noreply.github.com>
1 parent 7ad27ef commit ccedfb6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

frontend/src/features/idir/search/table/PermitSearchResultColumnDef.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ export const PermitSearchResultColumnDef = (
4343
return PERMIT_STATUSES.SUPERSEDED;
4444
}
4545

46+
if (permitStatus === PERMIT_STATUSES.REVOKED) {
47+
return PERMIT_STATUSES.REVOKED;
48+
}
49+
4650
if (hasPermitExpired(expiryDate)) {
4751
return PERMIT_EXPIRED;
4852
}

frontend/src/features/settings/components/creditAccount/StatusChip.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { OnRouteBCChip } from "../../../../common/components/chip/OnRouteBCChip";
12
import {
23
CreditAccountStatusType,
34
CreditAccountStatusDisplayValues,
@@ -20,9 +21,11 @@ export const StatusChip = ({ status }: StatusChipProps) => {
2021
}
2122
if (status === "SUSPENDED") {
2223
return (
23-
<span role="status" className="status-chip status-chip--suspended">
24-
Suspended
25-
</span>
24+
<OnRouteBCChip
25+
className="status-chip status-chip--suspended"
26+
message="S"
27+
hoverText="Suspended"
28+
/>
2629
);
2730
}
2831
if (status === "UNVERIFIED") {

0 commit comments

Comments
 (0)