From 2311adba05289f302ff336273013b74281e418c9 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelsalam Date: Thu, 13 Jun 2024 18:14:37 +0200 Subject: [PATCH] Apply review remarks. --- src/gmp/capabilities/capabilities.js | 2 +- src/gmp/commands/auditreports.js | 2 - src/gmp/models/auditreport.js | 4 +- src/gmp/models/report/auditreport.js | 4 - src/web/components/bar/compliancebar.jsx | 4 +- src/web/components/label/compliancestate.jsx | 68 ++++------------- .../powerfilter/compliancelevelsgroup.jsx | 26 +++---- src/web/entities/filterprovider.jsx | 1 - .../__mocks__/mockauditdeltareport.jsx | 4 - .../reports/__mocks__/mockauditreport.jsx | 4 - .../__tests__/auditdeltadetailspage.jsx | 3 - .../reports/__tests__/auditdetailscontent.jsx | 3 - .../reports/__tests__/auditfilterdialog.jsx | 3 - .../__tests__/auditreportslistpage.jsx | 4 - .../reports/__tests__/detailsfilterdialog.jsx | 3 - .../pages/reports/auditdashboard/index.jsx | 4 +- .../pages/reports/auditdashboard/loaders.jsx | 4 +- .../reports/auditdashboard/statusdisplay.jsx | 4 +- .../pages/reports/auditdeltadetailspage.jsx | 4 +- src/web/pages/reports/auditdetailscontent.jsx | 4 +- src/web/pages/reports/auditdetailspage.jsx | 4 +- src/web/pages/reports/auditfilterdialog.jsx | 76 +++++++++---------- src/web/pages/reports/auditreportrow.jsx | 4 +- .../pages/reports/auditreportslistpage.jsx | 9 +-- src/web/pages/reports/auditreportstable.jsx | 8 +- .../reports/details/__tests__/resultstab.jsx | 3 - src/web/pages/reports/details/resultstab.jsx | 4 +- src/web/store/entities/auditreports.js | 2 - 28 files changed, 81 insertions(+), 184 deletions(-) diff --git a/src/gmp/capabilities/capabilities.js b/src/gmp/capabilities/capabilities.js index 2afd4898ba..297f9e8fc9 100644 --- a/src/gmp/capabilities/capabilities.js +++ b/src/gmp/capabilities/capabilities.js @@ -54,7 +54,7 @@ const convertType = type => { if (isDefined(ctype)) { type = ctype; } - return subtypes[type] ? subtypes[type] : type; + return subtypes[type] || type; }; class Capabilities { diff --git a/src/gmp/commands/auditreports.js b/src/gmp/commands/auditreports.js index d0d7edb32b..dcb6ccbebd 100644 --- a/src/gmp/commands/auditreports.js +++ b/src/gmp/commands/auditreports.js @@ -137,5 +137,3 @@ export class AuditReportCommand extends EntityCommand { registerCommand('auditreport', AuditReportCommand); registerCommand('auditreports', AuditReportsCommand); - -// vim: set ts=2 sw=2 tw=80: diff --git a/src/gmp/models/auditreport.js b/src/gmp/models/auditreport.js index 257b6b7302..62438d2071 100644 --- a/src/gmp/models/auditreport.js +++ b/src/gmp/models/auditreport.js @@ -49,7 +49,7 @@ class AuditReport extends Model { copy.task = parseModelFromElement(task, 'task'); copy.reportType = type; - copy.contentType = content_type; // revert ? + copy.contentType = content_type; copy.scan_start = parseDate(scan_start); copy.timestamp = parseDate(timestamp); @@ -63,5 +63,3 @@ class AuditReport extends Model { } export default AuditReport; - -// vim: set ts=2 sw=2 tw=80: diff --git a/src/gmp/models/report/auditreport.js b/src/gmp/models/report/auditreport.js index e513d06c25..18e69b4558 100644 --- a/src/gmp/models/report/auditreport.js +++ b/src/gmp/models/report/auditreport.js @@ -49,8 +49,6 @@ class AuditReportReport extends Model { copy.reportType = element._type; - // copy.scanRunStatus = element.scan_run_status; - delete copy.filters; if (isDefined(compliance)) { @@ -140,5 +138,3 @@ class AuditReportReport extends Model { } export default AuditReportReport; - -// vim: set ts=2 sw=2 tw=80: diff --git a/src/web/components/bar/compliancebar.jsx b/src/web/components/bar/compliancebar.jsx index 26381a35a2..9f17e89fc9 100644 --- a/src/web/components/bar/compliancebar.jsx +++ b/src/web/components/bar/compliancebar.jsx @@ -41,6 +41,4 @@ ComplianceBar.propTypes = { toolTip: PropTypes.string, }; -export default ComplianceBar; - -// vim: set ts=2 sw=2 tw=80: +export default ComplianceBar; \ No newline at end of file diff --git a/src/web/components/label/compliancestate.jsx b/src/web/components/label/compliancestate.jsx index a0133320d0..065d371f13 100644 --- a/src/web/components/label/compliancestate.jsx +++ b/src/web/components/label/compliancestate.jsx @@ -4,15 +4,11 @@ */ import styled from 'styled-components'; - +import PropTypes from 'web/utils/proptypes'; import useTranslation from 'web/hooks/useTranslation'; -import {styledExcludeProps} from 'web/utils/styledConfig'; import Theme from 'web/utils/theme'; -const Label = styledExcludeProps(styled.div, [ - 'backgroundColor', - 'borderColor', -])` +const Label = styled.div` text-align: center; font-weight: normal; font-style: normal; @@ -22,62 +18,32 @@ const Label = styledExcludeProps(styled.div, [ width: 70px; height: 1.5em; font-size: 0.8em; - background-color: ${props => props.backgroundColor}; - border-color: ${props => props.borderColor}; + background-color: ${props => props.$backgroundColor}; + border-color: ${props => props.$borderColor}; `; - -const YesLabel = props => { +const ComplianceLabel = ({text, color, ...props}) => { const [_] = useTranslation(); return ( ) }; -const NoLabel = props => { - const [_] = useTranslation(); - return ( - - ) +ComplianceLabel.propTypes = { + text: PropTypes.string, + color: PropTypes.string, }; -const IncompleteLabel = props => { - const [_] = useTranslation(); - return ( - - ) -}; - -const UndefinedLabel = props => { - const [_] = useTranslation(); - return ( - - ) -}; +const YesLabel = props => ; +const NoLabel = props => ; +const IncompleteLabel = props => ; +const UndefinedLabel = props => ; export const ComplianceStateLabels = { Yes: YesLabel, @@ -86,6 +52,4 @@ export const ComplianceStateLabels = { Undefined: UndefinedLabel, }; -export default ComplianceStateLabels; - -// vim: set ts=2 sw=2 tw=80: +export default ComplianceStateLabels; \ No newline at end of file diff --git a/src/web/components/powerfilter/compliancelevelsgroup.jsx b/src/web/components/powerfilter/compliancelevelsgroup.jsx index b7c0044379..272b4882d6 100644 --- a/src/web/components/powerfilter/compliancelevelsgroup.jsx +++ b/src/web/components/powerfilter/compliancelevelsgroup.jsx @@ -28,11 +28,11 @@ const ComplianceLevelsFilterGroup = ({ const [_] = useTranslation(); const handleComplianceChange = (value, level) => { - const filter_name = isResult + const filterName = isResult ? 'compliance_levels' : 'report_compliance_levels'; - let compliance = filter.get(filter_name); + let compliance = filter.get(filterName); if (!compliance) { compliance = ''; @@ -40,51 +40,51 @@ const ComplianceLevelsFilterGroup = ({ if (value && !compliance.includes(level)) { compliance += level; - onChange(compliance, filter_name); + onChange(compliance, filterName); } else if (!value && compliance.includes(level)) { compliance = compliance.replace(level, ''); if (compliance.trim().length === 0) { onRemove(); } else { - onChange(compliance, filter_name); + onChange(compliance, filterName); } } }; - let compliance_levels = filter.get( + let complianceLevels = filter.get( isResult ? 'compliance_levels' : 'report_compliance_levels', ); - if (!isDefined(compliance_levels)) { - compliance_levels = ''; + if (!isDefined(complianceLevels)) { + complianceLevels = ''; } return ( @@ -102,6 +102,4 @@ ComplianceLevelsFilterGroup.propTypes = { onRemove: PropTypes.func.isRequired, }; -export default ComplianceLevelsFilterGroup; - -// vim: set ts=2 sw=2 tw=80: +export default ComplianceLevelsFilterGroup; \ No newline at end of file diff --git a/src/web/entities/filterprovider.jsx b/src/web/entities/filterprovider.jsx index 6efc494297..689fdbf4bc 100644 --- a/src/web/entities/filterprovider.jsx +++ b/src/web/entities/filterprovider.jsx @@ -22,7 +22,6 @@ const FilterProvider = ({ fallbackFilter, locationQueryFilterString: locationQuery?.filter, }); - return ( {isLoadingFilter ? : children({filter: returnedFilter})} diff --git a/src/web/pages/reports/__mocks__/mockauditdeltareport.jsx b/src/web/pages/reports/__mocks__/mockauditdeltareport.jsx index 9723ab7222..2e9507c304 100644 --- a/src/web/pages/reports/__mocks__/mockauditdeltareport.jsx +++ b/src/web/pages/reports/__mocks__/mockauditdeltareport.jsx @@ -3,12 +3,8 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -import {setLocale} from 'gmp/locale/lang'; - import AuditReport from 'gmp/models/auditreport'; -setLocale('en'); - // Task const task1 = { _id: '314', diff --git a/src/web/pages/reports/__mocks__/mockauditreport.jsx b/src/web/pages/reports/__mocks__/mockauditreport.jsx index e9b879a1d0..a723ab74bd 100644 --- a/src/web/pages/reports/__mocks__/mockauditreport.jsx +++ b/src/web/pages/reports/__mocks__/mockauditreport.jsx @@ -3,12 +3,8 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -import {setLocale} from 'gmp/locale/lang'; - import AuditReport from 'gmp/models/auditreport'; -setLocale('en'); - // Task const task1 = { _id: '314', diff --git a/src/web/pages/reports/__tests__/auditdeltadetailspage.jsx b/src/web/pages/reports/__tests__/auditdeltadetailspage.jsx index f44cd5df3f..fbd2849f14 100644 --- a/src/web/pages/reports/__tests__/auditdeltadetailspage.jsx +++ b/src/web/pages/reports/__tests__/auditdeltadetailspage.jsx @@ -7,7 +7,6 @@ import {describe, test, expect, testing} from '@gsa/testing'; import React from 'react'; import Capabilities from 'gmp/capabilities/capabilities'; -import {setLocale} from 'gmp/locale/lang'; import Filter from 'gmp/models/filter'; @@ -19,8 +18,6 @@ import {getMockAuditDeltaReport} from 'web/pages/reports/__mocks__/mockauditdelt import DeltaDetailsContent from 'web/pages/reports/deltadetailscontent'; -setLocale('en'); - const filter = Filter.fromString( 'apply_overrides=0 compliance_levels=ynui rows=10 min_qod=70 first=1 sort=compliant', ); diff --git a/src/web/pages/reports/__tests__/auditdetailscontent.jsx b/src/web/pages/reports/__tests__/auditdetailscontent.jsx index 5df95b4bb5..fa8ccd693f 100644 --- a/src/web/pages/reports/__tests__/auditdetailscontent.jsx +++ b/src/web/pages/reports/__tests__/auditdetailscontent.jsx @@ -7,7 +7,6 @@ import {describe, test, expect, testing} from '@gsa/testing'; import React from 'react'; import Capabilities from 'gmp/capabilities/capabilities'; -import {setLocale} from 'gmp/locale/lang'; import Filter from 'gmp/models/filter'; @@ -19,8 +18,6 @@ import {getMockAuditReport} from 'web/pages/reports/__mocks__/mockauditreport'; import DetailsContent from 'web/pages/reports/auditdetailscontent'; -setLocale('en'); - const filter = Filter.fromString( 'apply_overrides=0 compliance_levels=ynui rows=10 min_qod=70 first=1 sort=compliant', ); diff --git a/src/web/pages/reports/__tests__/auditfilterdialog.jsx b/src/web/pages/reports/__tests__/auditfilterdialog.jsx index 0eb7ecb897..f9d29e5809 100644 --- a/src/web/pages/reports/__tests__/auditfilterdialog.jsx +++ b/src/web/pages/reports/__tests__/auditfilterdialog.jsx @@ -7,7 +7,6 @@ import {describe, test, expect, testing} from '@gsa/testing'; import React from 'react'; import Capabilities from 'gmp/capabilities/capabilities'; -import {setLocale} from 'gmp/locale/lang'; import Filter from 'gmp/models/filter'; @@ -15,8 +14,6 @@ import {rendererWith} from 'web/utils/testing'; import AuditReportFilter from 'web/pages/reports/auditfilterdialog'; -setLocale('en'); - const caps = new Capabilities(['everything']); const manualUrl = 'test/'; diff --git a/src/web/pages/reports/__tests__/auditreportslistpage.jsx b/src/web/pages/reports/__tests__/auditreportslistpage.jsx index e26ae9285c..0539914828 100644 --- a/src/web/pages/reports/__tests__/auditreportslistpage.jsx +++ b/src/web/pages/reports/__tests__/auditreportslistpage.jsx @@ -7,8 +7,6 @@ import {describe, test, expect, testing} from '@gsa/testing'; import React from 'react'; import {act} from 'react-dom/test-utils'; -import {setLocale} from 'gmp/locale/lang'; - import CollectionCounts from 'gmp/collection/collectioncounts'; import Filter from 'gmp/models/filter'; @@ -22,8 +20,6 @@ import {rendererWith, waitFor, fireEvent} from 'web/utils/testing'; import {getMockAuditReport} from 'web/pages/reports/__mocks__/mockauditreport'; import AuditReportsPage from '../auditreportslistpage'; -setLocale('en'); - window.URL.createObjectURL = testing.fn(); const {entity} = getMockAuditReport(); diff --git a/src/web/pages/reports/__tests__/detailsfilterdialog.jsx b/src/web/pages/reports/__tests__/detailsfilterdialog.jsx index c7e6704369..4c26cc56bb 100644 --- a/src/web/pages/reports/__tests__/detailsfilterdialog.jsx +++ b/src/web/pages/reports/__tests__/detailsfilterdialog.jsx @@ -7,7 +7,6 @@ import {describe, test, expect, testing} from '@gsa/testing'; import React from 'react'; import Capabilities from 'gmp/capabilities/capabilities'; -import {setLocale} from 'gmp/locale/lang'; import Filter from 'gmp/models/filter'; @@ -15,8 +14,6 @@ import {rendererWith} from 'web/utils/testing'; import FilterDialog from 'web/pages/reports/detailsfilterdialog'; -setLocale('en'); - const caps = new Capabilities(['everything']); const manualUrl = 'test/'; diff --git a/src/web/pages/reports/auditdashboard/index.jsx b/src/web/pages/reports/auditdashboard/index.jsx index 44a9289e17..ab590e00b1 100644 --- a/src/web/pages/reports/auditdashboard/index.jsx +++ b/src/web/pages/reports/auditdashboard/index.jsx @@ -33,6 +33,4 @@ const AuditReportsDashboard = props => ( /> ); -export default AuditReportsDashboard; - -// vim: set ts=2 sw=2 tw=80: +export default AuditReportsDashboard; \ No newline at end of file diff --git a/src/web/pages/reports/auditdashboard/loaders.jsx b/src/web/pages/reports/auditdashboard/loaders.jsx index 02c331e601..54ddad147f 100644 --- a/src/web/pages/reports/auditdashboard/loaders.jsx +++ b/src/web/pages/reports/auditdashboard/loaders.jsx @@ -27,6 +27,4 @@ export const ReportCompianceLoader = ({children, filter}) => ( ); -ReportCompianceLoader.propTypes = loaderPropTypes; - -// vim: set ts=2 sw=2 tw=80: +ReportCompianceLoader.propTypes = loaderPropTypes; \ No newline at end of file diff --git a/src/web/pages/reports/auditdashboard/statusdisplay.jsx b/src/web/pages/reports/auditdashboard/statusdisplay.jsx index 1d4c45b96e..7305781531 100644 --- a/src/web/pages/reports/auditdashboard/statusdisplay.jsx +++ b/src/web/pages/reports/auditdashboard/statusdisplay.jsx @@ -86,6 +86,4 @@ registerDisplay( { title: _l('Table: Audit Reports by Compliance'), }, -); - -// vim: set ts=2 sw=2 tw=80: +); \ No newline at end of file diff --git a/src/web/pages/reports/auditdeltadetailspage.jsx b/src/web/pages/reports/auditdeltadetailspage.jsx index 67f90d4029..4916895a23 100644 --- a/src/web/pages/reports/auditdeltadetailspage.jsx +++ b/src/web/pages/reports/auditdeltadetailspage.jsx @@ -549,6 +549,4 @@ DeltaAuditReportDetailsWrapper.propTypes = { export default compose( withDialogNotification, withDownload, -)(DeltaAuditReportDetailsWrapper); - -// vim: set ts=2 sw=2 tw=80: +)(DeltaAuditReportDetailsWrapper); \ No newline at end of file diff --git a/src/web/pages/reports/auditdetailscontent.jsx b/src/web/pages/reports/auditdetailscontent.jsx index 7f69f07a9a..c1ed725c89 100644 --- a/src/web/pages/reports/auditdetailscontent.jsx +++ b/src/web/pages/reports/auditdetailscontent.jsx @@ -445,6 +445,4 @@ PageContent.propTypes = { onTlsCertificateDownloadClick: PropTypes.func.isRequired, }; -export default PageContent; - -// vim: set ts=2 sw=2 tw=80: +export default PageContent; \ No newline at end of file diff --git a/src/web/pages/reports/auditdetailspage.jsx b/src/web/pages/reports/auditdetailspage.jsx index 088828a4a4..db953b0f72 100644 --- a/src/web/pages/reports/auditdetailspage.jsx +++ b/src/web/pages/reports/auditdetailspage.jsx @@ -689,6 +689,4 @@ const ReportDetailsWrapper = props => { export default compose( withDialogNotification, withDownload, -)(ReportDetailsWrapper); - -// vim: set ts=2 sw=2 tw=80: +)(ReportDetailsWrapper); \ No newline at end of file diff --git a/src/web/pages/reports/auditfilterdialog.jsx b/src/web/pages/reports/auditfilterdialog.jsx index a8f3ddba27..02b05b1883 100644 --- a/src/web/pages/reports/auditfilterdialog.jsx +++ b/src/web/pages/reports/auditfilterdialog.jsx @@ -5,13 +5,12 @@ import React from 'react'; -import {_l, _} from 'gmp/locale/lang'; - import Layout from 'web/components/layout/layout'; -import compose from 'web/utils/compose'; import useCapabilities from 'web/utils/useCapabilities'; +import useTranslation from 'web/hooks/useTranslation'; + /* eslint-disable max-len */ import CreateNamedFilterGroup from 'web/components/powerfilter/createnamedfiltergroup'; @@ -27,37 +26,6 @@ import FilterSearchGroup from 'web/components/powerfilter/filtersearchgroup'; /* eslint-enable */ -const SORT_FIELDS = [ - { - name: 'date', - displayName: _l('Date'), - }, - { - name: 'status', - displayName: _l('Status'), - }, - { - name: 'task', - displayName: _l('Task'), - }, - { - name: 'compliant', - displayName: _l('Compliant'), - }, - { - name: 'compliance_yes', - displayName: _l('Compliance: Yes'), - }, - { - name: 'compliance_no', - displayName: _l('Compliance: No'), - }, - { - name: 'compliance_incomplete', - displayName: _l('Compliance: Incomplete'), - }, -]; - const AuditReportFilterDialogComponent = ({ filter, filterName, @@ -71,11 +39,41 @@ const AuditReportFilterDialogComponent = ({ onSortOrderChange, onValueChange, }) => { + const [_] = useTranslation(); + const capabilities = useCapabilities(); const handleRemoveCompliance = () => onFilterChange(filter.delete('report_compliance_levels')); - - const capabilities = useCapabilities(); - + const SORT_FIELDS = [ + { + name: 'date', + displayName: _('Date'), + }, + { + name: 'status', + displayName: _('Status'), + }, + { + name: 'task', + displayName: _('Task'), + }, + { + name: 'compliant', + displayName: _('Compliant'), + }, + { + name: 'compliance_yes', + displayName: _('Compliance: Yes'), + }, + { + name: 'compliance_no', + displayName: _('Compliance: No'), + }, + { + name: 'compliance_incomplete', + displayName: _('Compliance: Incomplete'), + }, + ]; + if (!filter) { return null; } @@ -133,6 +131,4 @@ const AuditReportFilterDialogComponent = ({ AuditReportFilterDialogComponent.propTypes = FilterDialogPropTypes; -export default compose(withFilterDialog())(AuditReportFilterDialogComponent); - -// vim: set ts=2 sw=2 tw=80: +export default withFilterDialog()(AuditReportFilterDialogComponent); \ No newline at end of file diff --git a/src/web/pages/reports/auditreportrow.jsx b/src/web/pages/reports/auditreportrow.jsx index 52d8e57c47..28334e9b3d 100644 --- a/src/web/pages/reports/auditreportrow.jsx +++ b/src/web/pages/reports/auditreportrow.jsx @@ -144,6 +144,4 @@ AuditRow.propTypes = { links: PropTypes.bool, }; -export default AuditRow; - -// vim: set ts=2 sw=2 tw=80: +export default AuditRow; \ No newline at end of file diff --git a/src/web/pages/reports/auditreportslistpage.jsx b/src/web/pages/reports/auditreportslistpage.jsx index e399e3546a..b12d3739a0 100644 --- a/src/web/pages/reports/auditreportslistpage.jsx +++ b/src/web/pages/reports/auditreportslistpage.jsx @@ -37,7 +37,6 @@ import { selector as entitiesSelector, } from 'web/store/entities/auditreports'; -import compose from 'web/utils/compose'; import PropTypes from 'web/utils/proptypes'; import AuditFilterDialog from './auditfilterdialog'; @@ -162,13 +161,9 @@ const FALLBACK_AUDIT_REPORT_LIST_FILTER = Filter.fromString( 'report_compliance_levels=yniu sort-reverse=date first=1', ); -export default compose( - withEntitiesContainer('auditreport', { +export default withEntitiesContainer('auditreport', { fallbackFilter: FALLBACK_AUDIT_REPORT_LIST_FILTER, entitiesSelector, loadEntities, reloadInterval: reportsReloadInterval, - }), -)(AuditReportsPage); - -// vim: set ts=2 sw=2 tw=80: + })(AuditReportsPage); \ No newline at end of file diff --git a/src/web/pages/reports/auditreportstable.jsx b/src/web/pages/reports/auditreportstable.jsx index 3830594a8f..4608cf114f 100644 --- a/src/web/pages/reports/auditreportstable.jsx +++ b/src/web/pages/reports/auditreportstable.jsx @@ -5,7 +5,8 @@ import React from 'react'; -import {_, _l} from 'gmp/locale/lang'; +import {_l} from 'gmp/locale/lang'; +import useTranslation from 'web/hooks/useTranslation'; import {isDefined} from 'gmp/utils/identity'; @@ -29,6 +30,7 @@ const Header = ({ currentSortDir, onSortChange, }) => { + const [_] = useTranslation(); return ( @@ -125,6 +127,4 @@ export default createEntitiesTable({ footer: Footer, row: AuditReportRow, toggleDetailsIcon: false, -}); - -// vim: set ts=2 sw=2 tw=80: +}); \ No newline at end of file diff --git a/src/web/pages/reports/details/__tests__/resultstab.jsx b/src/web/pages/reports/details/__tests__/resultstab.jsx index e648b4dec9..736267d6f8 100644 --- a/src/web/pages/reports/details/__tests__/resultstab.jsx +++ b/src/web/pages/reports/details/__tests__/resultstab.jsx @@ -5,7 +5,6 @@ import {describe, test, expect, testing} from '@gsa/testing'; import React from 'react'; -import {setLocale} from 'gmp/locale/lang'; import Filter from 'gmp/models/filter'; @@ -20,8 +19,6 @@ import {entitiesLoadingActions} from 'web/store/entities/results'; import ResultsTab from '../resultstab'; -setLocale('en'); - const reloadInterval = 1; const manualUrl = 'test/'; diff --git a/src/web/pages/reports/details/resultstab.jsx b/src/web/pages/reports/details/resultstab.jsx index 420961f883..0acc2e8d24 100644 --- a/src/web/pages/reports/details/resultstab.jsx +++ b/src/web/pages/reports/details/resultstab.jsx @@ -378,6 +378,4 @@ const mapDispatchToProps = (dispatch, {reportId, gmp}) => { export default compose( withGmp, connect(mapStateToProps, mapDispatchToProps), -)(ResultsTabWrapper); - -// vim: set ts=2 sw=2 tw=80: +)(ResultsTabWrapper); \ No newline at end of file diff --git a/src/web/store/entities/auditreports.js b/src/web/store/entities/auditreports.js index 3b305c09f9..95febbe2e3 100644 --- a/src/web/store/entities/auditreports.js +++ b/src/web/store/entities/auditreports.js @@ -60,5 +60,3 @@ export { reportsSelector as selector, entitiesActions, }; - -// vim: set ts=2 sw=2 tw=80: