From 164b3415aee23fbed77c5811818f93056c25e5bd Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Fri, 14 Jun 2019 14:12:09 +0530 Subject: [PATCH] Change routes in store --- .../react-app/src/components/apps/AppCard.js | 2 +- .../src/components/apps/release/ReleaseView.js | 4 ++-- .../react-app/src/index.js | 10 ++-------- .../react-app/src/pages/dashboard/Dashboard.js | 11 +++++++---- .../src/pages/dashboard/apps/release/Release.js | 1 + 5 files changed, 13 insertions(+), 15 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/AppCard.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/AppCard.js index 6078e71479..44082e690b 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/AppCard.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/AppCard.js @@ -32,7 +32,7 @@ class ConnectedAppCard extends React.Component { const description = (
- + icon diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js index 7872e0f308..ea96028b80 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js @@ -101,10 +101,10 @@ class ReleaseView extends React.Component { icon - App Name + {app.name} Version : {release.version}

@@ -28,12 +31,12 @@ class Dashboard extends React.Component { - Android - iOS - Web Clips + Android + iOS + Web Clips diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js index 5434ea66ef..acdf7763f7 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js @@ -26,6 +26,7 @@ class Release extends React.Component { } componentDidUpdate(prevProps, prevState, snapshot) { + const {uuid} = this.props.match.params; if (prevProps !== this.props) { this.fetchData(uuid); }