UI: Rename Attack -> AttackSection

This commit is contained in:
Mike Salvatore 2021-07-26 08:32:56 -04:00
parent 9bcce8d4b5
commit af9caee85f
2 changed files with 4 additions and 4 deletions

View File

@ -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 {
<div>
<BreachSection/>
<LateralMovement propagationStats={this.props.report.propagation_stats} />
<Attack telemetry={this.props.telemetry} />
<AttackSection telemetry={this.props.telemetry} />
</div>
)
}

View File

@ -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;