Skip to content

Commit

Permalink
Fixing import path for hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam committed Jul 3, 2024
1 parent 2311adb commit 8f49e98
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions allowedSnakeCase.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ module.exports = [
'_asset_id',
'asset_id',
'assigned_to',
'audit_report',
'audit_reports',
'auth_algorithm',
'auth_conf_setting',
'auth_method',
Expand Down Expand Up @@ -248,6 +250,7 @@ module.exports = [
'highest_severity',
'high_per_host',
'host_allow',
'host_compliance',
'host_cves',
'hostnames_by_ip',
'hosts_allow',
Expand Down
2 changes: 1 addition & 1 deletion src/web/pages/reports/auditdeltadetailspage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import {
import compose from 'web/utils/compose';
import {generateFilename} from 'web/utils/render';
import PropTypes from 'web/utils/proptypes';
import useGmp from 'web/utils/useGmp';
import useGmp from 'web/hooks/useGmp';

import TargetComponent from '../targets/component';

Expand Down
2 changes: 1 addition & 1 deletion src/web/pages/reports/auditdetailscontent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import EntityInfo from 'web/entity/info';
import EntityTags from 'web/entity/tags';

import PropTypes from 'web/utils/proptypes';
import useGmp from 'web/utils/useGmp';
import useGmp from 'web/hooks/useGmp';

import ErrorsTab from './details/errorstab';
import HostsTab from './details/hoststab';
Expand Down
2 changes: 1 addition & 1 deletion src/web/pages/reports/auditdetailspage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ import Page from './auditdetailscontent';
import FilterDialog from './detailsfilterdialog';
import {pageFilter as setPageFilter} from 'web/store/pages/actions';
import getPage from 'web/store/pages/selectors';
import useGmp from 'web/utils/useGmp';
import useGmp from 'web/hooks/useGmp';

const log = logger.getLogger('web.pages.auditreport.detailspage');

Expand Down
2 changes: 1 addition & 1 deletion src/web/pages/reports/auditfilterdialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React from 'react';

import Layout from 'web/components/layout/layout';

import useCapabilities from 'web/utils/useCapabilities';
import useCapabilities from 'web/hooks/useCapabilities';

import useTranslation from 'web/hooks/useTranslation';

Expand Down
2 changes: 1 addition & 1 deletion src/web/pages/results/__tests__/row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ describe('Delta reports V2 with same severity, qod and hostname', () => {
});

describe('Audit reports with compliance', () => {
const {render} = rendererWith();
const {render} = rendererWith({gmp, store: true});

test('should render Audit report with compliance yes', () => {
const entity = Result.fromElement({
Expand Down

0 comments on commit 8f49e98

Please sign in to comment.