From af9caee85fe0e806cd788c3d183ad3629e3fe743 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 26 Jul 2021 08:32:56 -0400 Subject: [PATCH] UI: Rename Attack -> AttackSection --- .../ui/src/components/report-components/RansomwareReport.js | 4 ++-- .../ransomware/{Attack.tsx => AttackSection.tsx} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename monkey/monkey_island/cc/ui/src/components/report-components/ransomware/{Attack.tsx => AttackSection.tsx} (95%) diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/RansomwareReport.js b/monkey/monkey_island/cc/ui/src/components/report-components/RansomwareReport.js index 25bc3876d..2e437fab2 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/RansomwareReport.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/RansomwareReport.js @@ -2,7 +2,7 @@ import React from 'react'; import ReportHeader, {ReportTypes} from './common/ReportHeader'; import ReportLoader from './common/ReportLoader'; -import Attack from './ransomware/Attack'; +import AttackSection from './ransomware/AttackSection'; import LateralMovement from './ransomware/LateralMovement'; import '../../styles/pages/report/RansomwareReport.scss'; @@ -19,7 +19,7 @@ class RansomwareReport extends React.Component {
- +
) } diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/Attack.tsx b/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/AttackSection.tsx similarity index 95% rename from monkey/monkey_island/cc/ui/src/components/report-components/ransomware/Attack.tsx rename to monkey/monkey_island/cc/ui/src/components/report-components/ransomware/AttackSection.tsx index d2e2d7e38..bc20207c2 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/Attack.tsx +++ b/monkey/monkey_island/cc/ui/src/components/report-components/ransomware/AttackSection.tsx @@ -8,7 +8,7 @@ const ATTACK_DESCRIPTION = 'After the attacker or malware has propagated through whatever way the attacker chooses.' const HOSTNAME_REGEX = /^(.* - )?(\S+) :.*$/; -function Attack({telemetry}: {telemetry: object}): ReactElement { +function AttackSection({telemetry}: {telemetry: object}): ReactElement { let tableData = processTelemetry(telemetry); let body = ( <> @@ -84,4 +84,4 @@ function parseHostname(monkey: string): string { return monkey.match(HOSTNAME_REGEX)[2]; } -export default Attack; +export default AttackSection;