We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd60c66 commit 71ef8d1Copy full SHA for 71ef8d1
2 files changed
app/src/components/domain/SeverityIndicator/index.tsx
@@ -4,6 +4,12 @@ import {
4
} from '@ifrc-go/ui';
5
import { isNotDefined } from '@togglecorp/fujs';
6
7
+import {
8
+ COLOR_ORANGE_SEVERITY,
9
+ COLOR_RED_SEVERITY,
10
+ COLOR_YELLOW_SEVERITY,
11
+} from '../ActiveOperationMap/utils';
12
+
13
interface Props extends Omit<ColorPreviewProps, 'value'> {
14
level: number | undefined | null;
15
title?: string;
@@ -17,9 +23,9 @@ function SeverityIndicator(props: Props) {
17
23
} = props;
18
24
19
25
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,
29
};
30
31
if (isNotDefined(level)) {
go-api
0 commit comments