diff --git a/src/taxonomy/taxonomy-card/index.jsx b/src/taxonomy/taxonomy-card/index.jsx index 097bc287fe..81cd8cbba9 100644 --- a/src/taxonomy/taxonomy-card/index.jsx +++ b/src/taxonomy/taxonomy-card/index.jsx @@ -70,7 +70,7 @@ const TaxonomyCard = ({ className, original }) => { } = original; const intl = useIntl(); - + const getHeaderActions = () => ( isExportModalOpen && ( - + const renderModals = () => ( + <> + {isExportModalOpen && ( + + )} + {isImportModalOpen && ( + + )} + ); return ( @@ -98,4 +109,4 @@ TaxonomyMenu.propTypes = { iconMenu: PropTypes.bool.isRequired, }; -export default TaxonomyMenu; \ No newline at end of file +export default TaxonomyMenu; diff --git a/src/taxonomy/taxonomy-menu/TaxonomyMenu.test.jsx b/src/taxonomy/taxonomy-menu/TaxonomyMenu.test.jsx index d24fc7d87c..caef75eb6d 100644 --- a/src/taxonomy/taxonomy-menu/TaxonomyMenu.test.jsx +++ b/src/taxonomy/taxonomy-menu/TaxonomyMenu.test.jsx @@ -168,4 +168,4 @@ describe('', async () => { expect(getTaxonomyExportFile).toHaveBeenCalledWith(taxonomyId, 'json'); }); }); -}); \ No newline at end of file +});