webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js in katello-4.13.1 vs webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js in katello-4.14.0.rc1

- old
+ new

@@ -2,10 +2,11 @@ useCallback, useEffect, useState, } from 'react'; import { FormattedMessage } from 'react-intl'; +import { getDocsURL } from 'foremanReact/common/helpers'; import { translate as __ } from 'foremanReact/common/I18n'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { STATUS } from 'foremanReact/constants'; import { lowerCase, @@ -38,11 +39,10 @@ Tr, Th, Td, } from '@patternfly/react-table'; import { useSelectionSet } from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks'; -import { useKatelloDocUrl } from '../../../../utils/useKatelloDocUrl'; import AddedStatusLabel from '../../../../components/AddedStatusLabel'; import SelectableDropdown from '../../../../components/SelectableDropdown'; import TableWrapper from '../../../../components/Table/TableWrapper'; import { ADDED, @@ -137,10 +137,10 @@ __('Sync state'), __('Content'), __('Status'), ]; - const documentationUrl = useKatelloDocUrl('Managing_Content', '#Products_and_Repositories_content-management'); + const documentationUrl = getDocsURL('Managing_Content', 'Products_and_Repositories_content-management'); useEffect(() => { dispatch(getRepositoryTypes()); }, []); // eslint-disable-line react-hooks/exhaustive-deps