forked from p15670423/monkey
Refactored ZeroTrust out of the names of all the things
This commit is contained in:
parent
9c1abf08a9
commit
274b861adc
|
@ -2,8 +2,8 @@ import React from 'react';
|
||||||
import {Button, Col} from 'react-bootstrap';
|
import {Button, Col} from 'react-bootstrap';
|
||||||
import AuthComponent from '../AuthComponent';
|
import AuthComponent from '../AuthComponent';
|
||||||
import ReportHeader, { ReportTypes } from "../report-components/common/ReportHeader";
|
import ReportHeader, { ReportTypes } from "../report-components/common/ReportHeader";
|
||||||
import ZeroTrustReportPillarGrades from "../report-components/zerotrust/ZeroTrustReportPillarGrades";
|
import PillarGrades from "../report-components/zerotrust/PillarGrades";
|
||||||
import ZeroTrustReportFindingsTable from "../report-components/zerotrust/ZeroTrustReportFindingsTable";
|
import FindingsTable from "../report-components/zerotrust/FindingsTable";
|
||||||
|
|
||||||
class ZeroTrustReportPageComponent extends AuthComponent {
|
class ZeroTrustReportPageComponent extends AuthComponent {
|
||||||
|
|
||||||
|
@ -43,9 +43,9 @@ class ZeroTrustReportPageComponent extends AuthComponent {
|
||||||
} else {
|
} else {
|
||||||
content = <div>
|
content = <div>
|
||||||
<h2>Pillars Overview</h2>
|
<h2>Pillars Overview</h2>
|
||||||
<ZeroTrustReportPillarGrades findings={this.state.report.findings} />
|
<PillarGrades findings={this.state.report.findings} />
|
||||||
<h2>Findings</h2>
|
<h2>Findings</h2>
|
||||||
<ZeroTrustReportFindingsTable findings={this.state.report.findings} />
|
<FindingsTable findings={this.state.report.findings} />
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ const columns = [
|
||||||
|
|
||||||
const pageSize = 10;
|
const pageSize = 10;
|
||||||
|
|
||||||
class ZeroTrustReportFindingsTable extends Component {
|
class FindingsTable extends Component {
|
||||||
render() {
|
render() {
|
||||||
let defaultPageSize = this.props.findings.length > pageSize ? pageSize : this.props.findings.length;
|
let defaultPageSize = this.props.findings.length > pageSize ? pageSize : this.props.findings.length;
|
||||||
let showPagination = this.props.findings.length > pageSize;
|
let showPagination = this.props.findings.length > pageSize;
|
||||||
|
@ -86,4 +86,4 @@ class ZeroTrustReportFindingsTable extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default ZeroTrustReportFindingsTable;
|
export default FindingsTable;
|
|
@ -1,8 +1,7 @@
|
||||||
import React, {Component} from "react";
|
import React, {Component} from "react";
|
||||||
import ZeroTrustPillars from "./ZeroTrustPillars";
|
import ZeroTrustPillars from "./ZeroTrustPillars";
|
||||||
import ZeroTrustReportFindingsTable from "./ZeroTrustReportFindingsTable";
|
|
||||||
|
|
||||||
export class ZeroTrustReportPillarGrades extends Component {
|
export class PillarGrades extends Component {
|
||||||
render() {
|
render() {
|
||||||
let pillarsCounters = {};
|
let pillarsCounters = {};
|
||||||
for(const pillar in ZeroTrustPillars) {
|
for(const pillar in ZeroTrustPillars) {
|
||||||
|
@ -41,4 +40,4 @@ export class ZeroTrustReportPillarGrades extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ZeroTrustReportPillarGrades;
|
export default PillarGrades;
|
Loading…
Reference in New Issue