From c69953dc3952f5b607d7cd36c7139f3082595f45 Mon Sep 17 00:00:00 2001 From: Sina Javaheri Date: Sat, 7 Dec 2024 19:09:58 +0100 Subject: [PATCH] fix(severity-item): fix green color in low severity and add info --- src/shared/severity/SeverityItem.tsx | 3 +++ src/shared/severity/info-severity.svg | 14 ++++++++++++++ src/shared/severity/low-severity.svg | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/shared/severity/info-severity.svg diff --git a/src/shared/severity/SeverityItem.tsx b/src/shared/severity/SeverityItem.tsx index be097a32..5d308be8 100644 --- a/src/shared/severity/SeverityItem.tsx +++ b/src/shared/severity/SeverityItem.tsx @@ -2,6 +2,7 @@ import { SVGProps } from 'react' import { SeverityType } from 'src/shared/types/server-shared' import CriticalSeverityIcon from './critical-severity.svg?react' import HighSeverityIcon from './high-severity.svg?react' +import InfoSeverityIcon from './info-severity.svg?react' import LowSeverityIcon from './low-severity.svg?react' import MediumSeverityIcon from './medium-severity.svg?react' @@ -11,6 +12,8 @@ interface SeverityItemProps extends SVGProps { export const SeverityItem = ({ severity, ...rest }: SeverityItemProps) => { switch (severity) { + case 'info': + return case 'low': return case 'medium': diff --git a/src/shared/severity/info-severity.svg b/src/shared/severity/info-severity.svg new file mode 100644 index 00000000..c66e6437 --- /dev/null +++ b/src/shared/severity/info-severity.svg @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/src/shared/severity/low-severity.svg b/src/shared/severity/low-severity.svg index 3e9540a5..1f13c6ca 100644 --- a/src/shared/severity/low-severity.svg +++ b/src/shared/severity/low-severity.svg @@ -1,7 +1,7 @@ + fill="#ffecb3" />