mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
chore: simplify AttackSurface component
This commit is contained in:
@@ -5,22 +5,18 @@ import ActionCard from "../ui/action-card/ActionCard";
|
||||
const cardData = [
|
||||
{
|
||||
findings: 3,
|
||||
icon: "solar:danger-triangle-bold",
|
||||
title: "Internet Exposed Resources",
|
||||
},
|
||||
{
|
||||
findings: 15,
|
||||
icon: "solar:danger-triangle-bold",
|
||||
title: "Exposed Secrets",
|
||||
},
|
||||
{
|
||||
findings: 0,
|
||||
icon: "heroicons:shield-check-solid",
|
||||
title: "IAM Policies Leading to Privilege Escalation",
|
||||
},
|
||||
{
|
||||
findings: 0,
|
||||
icon: "heroicons:shield-check-solid",
|
||||
title: "EC2 with Metadata Service V1 (IMDSv1)",
|
||||
},
|
||||
];
|
||||
@@ -32,7 +28,11 @@ export const AttackSurface = () => {
|
||||
<ActionCard
|
||||
key={index}
|
||||
color={card.findings > 0 ? "fail" : "success"}
|
||||
icon={card.findings > 0 ? "solar:danger-triangle-bold" : card.icon}
|
||||
icon={
|
||||
card.findings > 0
|
||||
? "solar:danger-triangle-bold"
|
||||
: "heroicons:shield-check-solid"
|
||||
}
|
||||
title={card.title}
|
||||
description={
|
||||
card.findings > 0 ? "Review Required" : "No Issues Found"
|
||||
|
||||
Reference in New Issue
Block a user