From 1cadf36b6f6c6eac257728fbb1adc97f3cbcb7a8 Mon Sep 17 00:00:00 2001 From: HendrikThePendric Date: Thu, 28 Nov 2024 22:47:46 +0100 Subject: [PATCH] fix: import local useCacheableSection --- .../DashboardsBar/NavigationMenu/NavigationMenuItem.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/DashboardsBar/NavigationMenu/NavigationMenuItem.js b/src/components/DashboardsBar/NavigationMenu/NavigationMenuItem.js index 0a2433fcc..b644b7391 100644 --- a/src/components/DashboardsBar/NavigationMenu/NavigationMenuItem.js +++ b/src/components/DashboardsBar/NavigationMenu/NavigationMenuItem.js @@ -1,8 +1,4 @@ -import { - useCacheableSection, - useDataEngine, - useDhis2ConnectionStatus, -} from '@dhis2/app-runtime' +import { useDataEngine, useDhis2ConnectionStatus } from '@dhis2/app-runtime' import { IconStarFilled16, MenuItem, colors } from '@dhis2/ui' import debounce from 'lodash/debounce.js' import PropTypes from 'prop-types' @@ -10,6 +6,7 @@ import React, { useCallback } from 'react' import { useSelector } from 'react-redux' import { useHistory } from 'react-router-dom' import { apiPostDataStatistics } from '../../../api/dataStatistics.js' +import { useCacheableSection } from '../../../modules/useCacheableSection.js' import { sGetSelectedId } from '../../../reducers/selected.js' import { IconOfflineSaved } from '../../IconOfflineSaved.js' import styles from './styles/NavigationMenuItem.module.css'