Skip to content

Commit

Permalink
Protect: use error variant for threats in home hero, use solid varian…
Browse files Browse the repository at this point in the history
…ts in scan hero
  • Loading branch information
nateweller committed Dec 16, 2024
1 parent dd590ac commit b5020dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,7 @@ AdminSectionHero.Heading = ( {
<H3 mb={ 1 } { ...props }>
{ children }
{ !! icon && (
<ShieldIcon
height={ 38 }
variant={ icon }
outline
fill="default"
className={ styles[ 'heading-icon' ] }
/>
<ShieldIcon height={ 38 } variant={ icon } className={ styles[ 'heading-icon' ] } />
) }
</H3>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,7 @@ const HomeStatCards = () => {
} else if ( scanError ) {
scanIcon = <ShieldIcon variant="error" height={ ICON_HEIGHT } />;
} else {
scanIcon = (
<ShieldIcon
variant={ numThreats ? 'warning' : 'success' }
height={ ICON_HEIGHT }
color={ numThreats ? '#F0B849' : '#069E08' }
/>
);
scanIcon = <ShieldIcon variant={ numThreats ? 'error' : 'success' } height={ ICON_HEIGHT } />;
}

let scanLabel;
Expand Down

0 comments on commit b5020dd

Please sign in to comment.