Skip to content

Commit

Permalink
fix(severity-item): fix green color in low severity and add info
Browse files Browse the repository at this point in the history
  • Loading branch information
sijav committed Dec 7, 2024
1 parent 188a51b commit c69953d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/shared/severity/SeverityItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -11,6 +12,8 @@ interface SeverityItemProps extends SVGProps<SVGSVGElement> {

export const SeverityItem = ({ severity, ...rest }: SeverityItemProps) => {
switch (severity) {
case 'info':
return <InfoSeverityIcon width={32} height={8} {...rest} />
case 'low':
return <LowSeverityIcon width={32} height={8} {...rest} />
case 'medium':
Expand Down
14 changes: 14 additions & 0 deletions src/shared/severity/info-severity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/shared/severity/low-severity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c69953d

Please sign in to comment.