devabhishekpal commented on code in PR #7358:
URL: https://github.com/apache/ozone/pull/7358#discussion_r1820174863


##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/app.tsx:
##########
@@ -56,48 +57,51 @@ class App extends React.Component<Record<string, object>, 
IAppState> {
   };
 
   render() {
-    const { collapsed, enableNewUI } = this.state;
+    const { collapsed, enableOldUI } = this.state;
     const layoutClass = classNames('content-layout', { 'sidebar-collapsed': 
collapsed });
 
 
     return (
       <Router>
         <Layout style={{ minHeight: '100vh' }}>
           {
-            (enableNewUI)
-            ? <NavBarV2 collapsed={collapsed} onCollapse={this.onCollapse} />
-            : <NavBar collapsed={collapsed} onCollapse={this.onCollapse} />
+            (enableOldUI)
+              ? <NavBar collapsed={collapsed} onCollapse={this.onCollapse} />
+              : <NavBarV2 collapsed={collapsed} onCollapse={this.onCollapse} />
           }
           <Layout className={layoutClass}>
             <Header>
               <div style={{ margin: '16px 0', display: 'flex', justifyContent: 
'space-between' }}>
-                {(enableNewUI) ? <BreadcrumbsV2 /> : <Breadcrumbs />}
+                {(enableOldUI) ? <Breadcrumbs /> : <BreadcrumbsV2 />}
                 <AntDSwitch
-                  disabled={true}
-                  checkedChildren={<div style={{ paddingLeft: '2px' }}>New 
UI</div>}
+                  unCheckedChildren={<div style={{ paddingRight: '2px' }}>UI 
v2</div>}

Review Comment:
   Addressed in 
[9e942d4](https://github.com/apache/ozone/pull/7358/commits/9e942d4368083a49aecc038b9498b18793008f11)
   After change:
   <img width="1728" alt="Screenshot 2024-10-29 at 12 15 33" 
src="https://github.com/user-attachments/assets/3de9cb8c-a23c-48c1-9bf6-09125491dc22";>
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to