From 0757783b81f808c3f3c811d8bc665442d57172a0 Mon Sep 17 00:00:00 2001 From: Nipun Nadeen De Silva Date: Tue, 8 Oct 2019 07:56:13 +0000 Subject: [PATCH] Fix the navigation bar issue in APPM UI --- .../src/components/apps/list-apps/ListApps.js | 4 +- .../src/pages/dashboard/Dashboard.js | 27 ++++++------ .../react-app/src/pages/Login.js | 2 +- .../src/pages/dashboard/Dashboard.js | 42 +++++++++---------- 4 files changed, 38 insertions(+), 37 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/ListApps.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/ListApps.js index ec5b7a25d9b..38582664dc9 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/ListApps.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/ListApps.js @@ -57,10 +57,10 @@ class ListApps extends React.Component { return ( - + - + Apps diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js index 044851a503a..50adbe5516f 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/Dashboard.js @@ -77,8 +77,7 @@ class Dashboard extends React.Component { Add New App - } - > + }> Public App @@ -105,8 +104,7 @@ class Dashboard extends React.Component { title={ Manage - - }> + }> General @@ -125,8 +123,7 @@ class Dashboard extends React.Component { title={ Profile - - }> + }> @@ -137,9 +134,12 @@ class Dashboard extends React.Component {
+
@@ -160,8 +160,11 @@ class Dashboard extends React.Component { mode="inline" defaultSelectedKeys={['1']} style={{lineHeight: '64px', width: 231}}> - Apps + + + Apps + + @@ -188,6 +191,7 @@ class Dashboard extends React.Component {
+ - - }> + }> @@ -219,6 +222,6 @@ class Dashboard extends React.Component { ); } -}; +} export default withConfigContext(Dashboard); \ No newline at end of file diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/Login.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/Login.js index ec615bfedfc..e5177f77624 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/Login.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/Login.js @@ -159,7 +159,7 @@ class NormalLoginForm extends React.Component { )}
Forgot password - diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js index 2ee3aba497f..e3d2ee72935 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js @@ -80,7 +80,7 @@ class Dashboard extends React.Component { collapsed: !this.state.collapsed, }); }; - + onCloseMobileNavigationBar = () => { this.setState({ visible: false, @@ -123,22 +123,23 @@ class Dashboard extends React.Component { theme="light" mode="horizontal" defaultSelectedKeys={selectedKeys} - style={{lineHeight: '64px'}} - > + style={{lineHeight: '64px'}}> {DeviceTypesData} - Web - Clips + + + + Web Clips + + Profile - - } - > + }> @@ -153,6 +154,7 @@ class Dashboard extends React.Component { +
logo @@ -162,34 +164,32 @@ class Dashboard extends React.Component { onClose={this.onCloseMobileNavigationBar} visible={this.state.visible} getContainer={false} - style={{position: 'absolute'}} - > + style={{position: 'absolute'}}> + style={{lineHeight: '64px', width: 231}}> {DeviceTypesData} - Web - Clips - + + + Web Clips + + + + style={{lineHeight: '63px', position: 'fixed', marginLeft: '80%'}}> - - } - > + }> @@ -202,9 +202,7 @@ class Dashboard extends React.Component { ))} - -