add exclamation icon to ssa badge

pull/3779/head
Joseph Izang 1 year ago
parent 5aa4daba75
commit 928b0ad64f
  1. 5
      libs/remix-ui/vertical-icons-panel/src/lib/components/Badge.tsx

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import React from 'react'
import { BadgeStatus } from './Icon'
import { CustomTooltip } from '@remix-ui/helper'
@ -58,7 +59,9 @@ function Badge ({ badgeStatus }: BadgeProps) {
className={`${resolveClasses(badgeStatus.key, badgeStatus.type!)}`}
aria-hidden="true"
>
{ badgeStatus.pluginName && badgeStatus.pluginName === 'solidityStaticAnalysis' ? <span>&nbsp;</span> : badgeStatus.text }
{ badgeStatus.pluginName && badgeStatus.pluginName === 'solidityStaticAnalysis' ? badgeStatus.type === 'warning' || badgeStatus.type === 'error' ? <span>
<i className="far fa-exclamation-triangle"></i></span>
: <span>:nbsp;</span> : badgeStatus.text }
</i>
// </CustomTooltip>
) : null

Loading…
Cancel
Save