diff --git a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/app.tsx b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/app.tsx index ceb633f603e..0b7607f2978 100644 --- a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/app.tsx +++ b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/app.tsx @@ -32,6 +32,7 @@ import classNames from 'classnames'; import Loader from '@/v2/components/loader/loader'; import './app.less'; +import NotFound from '@/v2/pages/notFound/notFound'; const { Header, Content, Footer @@ -39,7 +40,7 @@ const { interface IAppState { collapsed: boolean; - enableNewUI: boolean; + enableOldUI: boolean; } class App extends React.Component, IAppState> { @@ -47,7 +48,7 @@ class App extends React.Component, IAppState> { super(props); this.state = { collapsed: false, - enableNewUI: false + enableOldUI: false }; } @@ -56,7 +57,7 @@ class App extends React.Component, IAppState> { }; render() { - const { collapsed, enableNewUI } = this.state; + const { collapsed, enableOldUI } = this.state; const layoutClass = classNames('content-layout', { 'sidebar-collapsed': collapsed }); @@ -64,40 +65,46 @@ class App extends React.Component, IAppState> { { - (enableNewUI) - ? - : + (enableOldUI) + ? + : }
-
- {(enableNewUI) ? : } - New UI
} - onChange={(checked: boolean) => { - this.setState({ - enableNewUI: checked - }); - }} /> +
+ {(enableOldUI) ? : } + + Switch to + Old UI
} + checkedChildren={
New UI
} + onChange={(checked: boolean) => { + this.setState({ + enableOldUI: checked + }); + }} /> +
- - - - - - {(enableNewUI) - ? }> - {routesV2.map( + + }> + + + + + {(enableOldUI) + ? routes.map( (route, index) => - )} - - : routes.map( - (route, index) => - ) - } - + ) + : routesV2.map( + (route, index) => { + return + } + ) + } + + +