diff --git a/frontend/public/components/nav.jsx b/frontend/public/components/nav.jsx
index 4447e35daac..8783c8a7cb7 100644
--- a/frontend/public/components/nav.jsx
+++ b/frontend/public/components/nav.jsx
@@ -364,7 +364,8 @@ export class Nav extends React.Component {
const { isOpen } = this.state;
if (isKubevirt()) {
- return ;
+ // The ResourceNSLink, HrefLink, Sep components are passed as props to eliminate the need for additional changes in OKD core code. Ugly anti-pattern, but serves its purpose.
+ return ;
}
return
diff --git a/frontend/public/kubevirt/components/nav.jsx b/frontend/public/kubevirt/components/nav.jsx
index 3e10053fdb4..8d244bd731e 100644
--- a/frontend/public/kubevirt/components/nav.jsx
+++ b/frontend/public/kubevirt/components/nav.jsx
@@ -1,12 +1,17 @@
import * as React from 'react';
import * as classNames from 'classnames';
-import {NavSection, ClusterPickerNavSection, UserNavSection} from './okdcomponents';
-import {formatNamespacedRouteForResource} from '../ui/okdui-actions';
+import * as routingImg from '../../imgs/routing.svg';
+import * as routingActiveImg from '../../imgs/routing-active.svg';
+import { FLAGS } from '../../features';
+
+import { NavSection, ClusterPickerNavSection, UserNavSection } from './okdcomponents';
+import { DeploymentConfigModel } from '../models';
// With respect to keep changes to OKD codebase at bare minimum,
-// the navigation needs to be reconstructed
-const Nav = ({ isOpen, onToggle, close, scroller, onWheel }) => {
+// the navigation needs to be reconstructed.
+// The ResourceNSLink, HrefLink, Sep components are passed as props to eliminate the need for additional changes in OKD core code. Ugly anti-pattern, but serves its purpose.
+const Nav = ({ isOpen, onToggle, close, scroller, onWheel, searchStartsWith, ResourceNSLink, HrefLink, Sep, ResourceClusterLink }) => {
return (