From 1b958ed300907ecec7cb68de7b54f3590611c767 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Mon, 5 Aug 2019 15:23:52 +0300 Subject: [PATCH] Added label component for pillar and added word wrap --- .../zerotrust/ZeroTrustReportFindingsTable.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/ZeroTrustReportFindingsTable.js b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/ZeroTrustReportFindingsTable.js index d2f782213..aa93a8d41 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/ZeroTrustReportFindingsTable.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/ZeroTrustReportFindingsTable.js @@ -1,16 +1,25 @@ import React, {Component} from "react"; import ReactTable from "react-table"; +import ZeroTrustPillars from "./ZeroTrustPillars"; + +class PillarLabel extends Component { + render() { + return {this.props.pillar} + } +} const columns = [ { Header: 'Findings', columns: [ - { Header: 'Test', accessor: 'test'}, + { Header: 'Test', accessor: 'test', + style: {'white-space': 'unset'} // This enables word wrap + }, { Header: 'Pillars', id: "pillars", accessor: x => { const pillars = x.pillars; const listItems = pillars.map((pillar) => -
  • {pillar}
  • +
  • ); return }