From f61ed5ddf5e250c4eedeb61c81464164ad27eba3 Mon Sep 17 00:00:00 2001 From: Pablo Lara Date: Mon, 19 Aug 2024 12:14:17 +0200 Subject: [PATCH] chore: simplify AttackSurface component --- components/overview/AttackSurface.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/overview/AttackSurface.tsx b/components/overview/AttackSurface.tsx index 61bb2fdfd2..13999abc65 100644 --- a/components/overview/AttackSurface.tsx +++ b/components/overview/AttackSurface.tsx @@ -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 = () => { 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"