diff --git a/plugins/main/public/components/common/doc_viewer/index.ts b/plugins/main/public/components/common/doc_viewer/index.ts new file mode 100644 index 0000000000..8db524b62a --- /dev/null +++ b/plugins/main/public/components/common/doc_viewer/index.ts @@ -0,0 +1,2 @@ +export * from './use_doc_viewer'; +export * from './doc_viewer'; \ No newline at end of file diff --git a/plugins/main/public/components/common/wazuh_discover/wz_discover.tsx b/plugins/main/public/components/common/wazuh_discover/wz_discover.tsx index f80e50c503..6b4caa793e 100644 --- a/plugins/main/public/components/common/wazuh_discover/wz_discover.tsx +++ b/plugins/main/public/components/common/wazuh_discover/wz_discover.tsx @@ -20,12 +20,11 @@ import { import { IntlProvider } from 'react-intl'; import { IndexPattern } from '../../../../../../src/plugins/data/common'; import { SearchResponse } from '../../../../../../src/core/server'; +import { useDocViewer } from '../doc_viewer'; import DocViewer from '../doc_viewer/doc_viewer'; import { DiscoverNoResults } from '../../overview/vulnerabilities/common/components/no_results'; import { LoadingSpinner } from '../../overview/vulnerabilities/common/components/loading_spinner'; import { useDataGrid, tDataGridColumn, exportSearchToCSV } from '../hooks/data_grid'; -import { useDocViewer } from '../doc_viewer/use_doc_viewer'; -//import './inventory.scss'; import { ErrorHandler, ErrorFactory, HttpError } from '../../../react-services/error-management'; import { withErrorBoundary } from '../hocs'; import { HitsCounter } from '../../../kibana-integrations/discover/application/components/hits_counter';