diff --git a/src/index.jsx b/src/index.jsx index 46ba868924..dec441acad 100755 --- a/src/index.jsx +++ b/src/index.jsx @@ -84,6 +84,9 @@ const App = () => { /> )} + + No match (404) + diff --git a/src/taxonomy/api/hooks/selectors.js b/src/taxonomy/api/hooks/selectors.js index c072c72e1e..0890dda77d 100644 --- a/src/taxonomy/api/hooks/selectors.js +++ b/src/taxonomy/api/hooks/selectors.js @@ -11,7 +11,7 @@ import { export const useTaxonomyListDataResponse = () => { const response = useTaxonomyListData(); if (response.status === 'success') { - return response.data; + return response.data.data; } return undefined; }; diff --git a/src/taxonomy/taxonomy-card/TaxonomyCard.jsx b/src/taxonomy/taxonomy-card/TaxonomyCard.jsx index 48e6688d91..0f1e20f8d4 100644 --- a/src/taxonomy/taxonomy-card/TaxonomyCard.jsx +++ b/src/taxonomy/taxonomy-card/TaxonomyCard.jsx @@ -7,6 +7,8 @@ import { } from '@edx/paragon'; import { injectIntl, intlShape } from '@edx/frontend-platform/i18n'; import PropTypes from 'prop-types'; +import { Link } from 'react-router-dom'; + import classNames from 'classnames'; import messages from '../messages'; import TaxonomyCardMenu from './TaxonomyCardMenu'; @@ -102,6 +104,7 @@ const TaxonomyCard = ({ className, original, intl }) => { return ( <> + { @@ -22,6 +23,8 @@ const TaxonomyDetailContent = ({ taxonomyId }) => { const { isError, isFetched, taxonomy } = useTaxonomyDetailData(taxonomyId); + const [isExportModalOpen, setIsExportModalOpen] = useState(false); + if (isError) { return ( @@ -34,6 +37,20 @@ const TaxonomyDetailContent = ({ taxonomyId }) => { ); } + const renderModals = () => ( + // eslint-disable-next-line react/jsx-no-useless-fragment + <> + {isExportModalOpen && ( + setIsExportModalOpen(false)} + taxonomyId={taxonomyId} + taxonomyName={taxonomy.name} + /> + )} + + ); + if (taxonomy) { return ( <> @@ -59,9 +76,9 @@ const TaxonomyDetailContent = ({ taxonomyId }) => { - + {renderModals()} ); }