Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
10 changes: 2 additions & 8 deletions projects/plugins/protect/src/js/routes/home/home-statcards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,9 @@ const HomeStatCards = () => {
if ( scanning ) {
scanIcon = <Spinner />;
} else if ( scanError ) {
scanIcon = <ShieldIcon variant="error" height={ ICON_HEIGHT } />;
scanIcon = <ShieldIcon variant="error" outline 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
3 changes: 2 additions & 1 deletion projects/plugins/protect/src/js/routes/scan/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ const ScanPage = () => {
currentScanStatus = 'active';
}

const hasActiveThreats = status && status.threats.length;
const hasHistory = history && history.threats.length;
const showResults = !! status.threats.length || hasHistory;
const showResults = hasActiveThreats || hasHistory;

const filters = useMemo( () => {
if ( location.pathname.includes( '/scan/history' ) ) {
Expand Down
Loading