diff --git a/.travis.yml b/.travis.yml index 62bec4fd2..d1178458b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -83,7 +83,7 @@ script: - cd monkey_island/cc/ui - npm ci # See https://docs.npmjs.com/cli/ci.html - eslint ./src --quiet # Test for errors -- JS_WARNINGS_AMOUNT_UPPER_LIMIT=25 +- JS_WARNINGS_AMOUNT_UPPER_LIMIT=28 - eslint ./src --max-warnings $JS_WARNINGS_AMOUNT_UPPER_LIMIT # Test for max warnings # Build documentation diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/FindingsTable.js b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/FindingsTable.js index 5c99b4866..f83921dae 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/FindingsTable.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/FindingsTable.js @@ -18,13 +18,11 @@ const columns = [ { Header: 'Events', id: 'events', accessor: x => { - const comp = ; - comp.displayName = 'EventsButton_' + x.finding_id; - return comp; }, maxWidth: EVENTS_COLUMN_MAX_WIDTH }, @@ -36,9 +34,7 @@ const columns = [ const pillarLabels = pillars.map((pillar) => ); - const comp =
{pillarLabels}
; - comp.displayName = 'PillarsLabels'; - return comp; + return
{pillarLabels}
; }, maxWidth: PILLARS_COLUMN_MAX_WIDTH, style: {'whiteSpace': 'unset'} diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/PrinciplesStatusTable.js b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/PrinciplesStatusTable.js index 6771747e0..6b1d22f6f 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/PrinciplesStatusTable.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/PrinciplesStatusTable.js @@ -13,9 +13,7 @@ const columns = [ { Header: 'Status', id: 'status', accessor: x => { - const comp = ; - comp.displayName = 'StatusLabel'; - return comp; + return ; }, maxWidth: MAX_WIDTH_STATUS_COLUMN }, @@ -27,9 +25,7 @@ const columns = [ Header: 'Monkey Tests', id: 'tests', style: {'whiteSpace': 'unset'}, // This enables word wrap accessor: x => { - const comp = ; - comp.displayName = 'TestsStatus'; - return comp; + return ; } } ]