Skip to content

Commit 11c9227

Browse files
Merge pull request #875 from PeterYurkovich/rename-openshift-project
NO-JIRA: breaking changes follow up
2 parents bf53ceb + b37eb16 commit 11c9227

3 files changed

Lines changed: 3 additions & 38 deletions

File tree

web/.eslintrc.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

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)