From 2a56eab19e12bbfbce6d541383146258d64cb5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Wed, 6 Dec 2023 20:31:59 -0300 Subject: [PATCH] fix: eslint --- src/taxonomy/taxonomy-card/index.jsx | 2 +- src/taxonomy/taxonomy-menu/TaxonomyMenu.jsx | 27 +++++++++++++------ .../taxonomy-menu/TaxonomyMenu.test.jsx | 2 +- 3 files changed, 21 insertions(+), 10 deletions(-) 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 +});