diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/package.json b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/package.json index ec52c2e3b84..57761af6ca0 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/package.json +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/package.json @@ -13,7 +13,8 @@ "antd": "^3.15.0", "react": "^16.8.4", "react-dom": "^16.8.4", - "react-scripts": "2.1.8" + "react-scripts": "2.1.8", + "react-router-dom": "latest" }, "devDependencies": { "@babel/core": "^7.0.0", diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/App.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/App.js index 5c76e235ec0..717d6fd7c3b 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/App.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/App.js @@ -1,17 +1,19 @@ import React from "react"; -import { version, Button } from 'antd'; import "antd/dist/antd.css"; import "./index.css"; +import {BrowserRouter, Route, Switch} from 'react-router-dom'; +import Dashboard from "./pages/dashboard" +import Login from "./pages/login" class App extends React.Component { render() { return ( -
Current antd version: {version}
-Please fork this codesandbox to reproduce your issue.
-请 fork 这个链接来重现你碰到的问题。
- -Currentdddddd antd version: {version}
+Please fork this codesandbox to reproduce your issue.
+请 fork 这个链接来重现你碰到的问题。
+ login + +Current antd version: {version}
+Please fork this codesandbox to reproduce your issue.
+请 fork 这个链接来重现你碰到的问题。
+ +