Skip to content

Commit a4c1b2d

Browse files
committed
feat:(severity): update severity level colorMap in SeverityIndicator
1 parent 2f410ac commit a4c1b2d

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

app/src/components/domain/SeverityIndicator/index.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import {
44
} from '@ifrc-go/ui';
55
import { isNotDefined } from '@togglecorp/fujs';
66

7+
import {
8+
COLOR_ORANGE_SEVERITY,
9+
COLOR_RED_SEVERITY,
10+
COLOR_YELLOW_SEVERITY,
11+
} from '../ActiveOperationMap/utils';
12+
713
interface Props extends Omit<ColorPreviewProps, 'value'> {
814
level: number | undefined | null;
915
title?: string;
@@ -17,9 +23,9 @@ function SeverityIndicator(props: Props) {
1723
} = props;
1824

1925
const colorMap: Record<number, string | undefined> = {
20-
0: 'var(--go-ui-color-yellow)',
21-
1: 'var(--go-ui-color-orange)',
22-
2: 'var(--go-ui-color-red)',
26+
0: COLOR_YELLOW_SEVERITY,
27+
1: COLOR_ORANGE_SEVERITY,
28+
2: COLOR_RED_SEVERITY,
2329
};
2430

2531
if (isNotDefined(level)) {

go-api

0 commit comments

Comments
 (0)