Browse Source

fix(alerts): Fix icon type for alert badge style (#66167)

Scott Cooper 1 year ago
parent
commit
1d3186805a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/app/views/projectDetail/projectLatestAlerts.tsx

+ 2 - 2
static/app/views/projectDetail/projectLatestAlerts.tsx

@@ -42,7 +42,7 @@ function AlertRow({alert, orgSlug}: AlertRowProps) {
       aria-label={title}
       to={`/organizations/${orgSlug}/alerts/${identifier}/`}
     >
-      <AlertBadgeWrapper {...statusProps} icon={<Icon />}>
+      <AlertBadgeWrapper icon={Icon}>
         <AlertBadge status={status} />
       </AlertBadgeWrapper>
       <AlertDetails>
@@ -208,7 +208,7 @@ type StatusColorProps = {
 const getStatusColor = ({isResolved, isWarning}: StatusColorProps) =>
   isResolved ? 'successText' : isWarning ? 'warningText' : 'errorText';
 
-const AlertBadgeWrapper = styled('div')<{icon: React.ReactNode} & StatusColorProps>`
+const AlertBadgeWrapper = styled('div')<{icon: typeof IconExclamation}>`
   display: flex;
   align-items: center;
   justify-content: center;