Skip to content

Commit 1949d16

Browse files
fix: rename useOpenshiftProject to useLegacyDashboardProject
1 parent bf53ceb commit 1949d16

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

web/src/components/dashboards/legacy/useLegacyDashboards.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import {
2222
MONITORING_DASHBOARDS_DEFAULT_TIMESPAN,
2323
MONITORING_DASHBOARDS_VARIABLE_ALL_OPTION_KEY,
2424
} from './utils';
25-
import { useOpenshiftProject } from './useOpenshiftProject';
25+
import { useLegacyDashboardsProject } from './useLegacyDashboardsProject';
2626

2727
export const useLegacyDashboards = (urlBoard: string) => {
2828
const { t } = useTranslation('plugin__monitoring-plugin');
2929
const { perspective } = usePerspective();
30-
const { project } = useOpenshiftProject();
30+
const { project } = useLegacyDashboardsProject();
3131

3232
// eslint-disable-next-line react-hooks/exhaustive-deps
3333
const safeFetch = useCallback(useSafeFetch(), []);

web/src/components/dashboards/legacy/useOpenshiftProject.ts renamed to web/src/components/dashboards/legacy/useLegacyDashboardsProject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useMonitoring } from '../../../hooks/useMonitoring';
99
import { useParams } from 'react-router';
1010
import { dashboardsPatchVariable } from '../../../store/actions';
1111

12-
export const useOpenshiftProject = () => {
12+
export const useLegacyDashboardsProject = () => {
1313
const { perspective } = usePerspective();
1414
const [activeNamespace, setActiveNamespace] = useActiveNamespace();
1515
const { ns: routeNamespace } = useParams<{ ns?: string }>();

0 commit comments

Comments
 (0)