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 15, 2024
1 parent c0531a2 commit 82263e8
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 82263e8

Please sign in to comment.