From ca1f147c77f85af35b2b3a6aee2bc1414186a590 Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Mon, 29 Apr 2019 13:51:03 +0530 Subject: [PATCH] fixed wrong redirection --- .../react-app/src/App.js | 2 +- .../react-app/src/index.js | 4 +- .../src/pages/dashboard/apps/Apps.js | 64 +++++++++++++++++++ 3 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/apps/Apps.js 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 7ba8524e2e..9c532989fa 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 @@ -20,7 +20,7 @@ class App extends React.Component {
- + {this.routes.map((route) => ( ))} diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/index.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/index.js index fc646cba4d..882fe0c8b6 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/index.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/index.js @@ -4,7 +4,7 @@ import * as serviceWorker from './serviceWorker'; import App from "./App"; import Login from "./pages/Login"; import Dashboard from "./pages/dashboard/Dashboard"; -import OldApps from "./pages/dashboard/apps/OldApps"; +import Apps from "./pages/dashboard/apps/Apps"; import AddNewApp from "./pages/dashboard/add-new-app/AddNewApp"; import './index.css'; import store from "./js/store/index"; @@ -25,7 +25,7 @@ const routes = [ routes: [ { path: '/publisher/apps', - component: OldApps, + component: Apps, exact: true }, { diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/apps/Apps.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/apps/Apps.js new file mode 100644 index 0000000000..e90fcf84b9 --- /dev/null +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/apps/Apps.js @@ -0,0 +1,64 @@ +import React from "react"; +import "antd/dist/antd.css"; +import {Table, Divider, Tag, Card, PageHeader, Typography, Avatar,Input, Button, Icon, Row, Col} from "antd"; +import Highlighter from 'react-highlight-words'; +import axios from "axios"; + +const Paragraph = Typography; +const Search = Input.Search; + +const routes = [ + { + path: 'index', + breadcrumbName: 'Publisher', + }, + { + path: 'first', + breadcrumbName: 'Dashboard', + }, + { + path: 'second', + breadcrumbName: 'Apps', + }, +]; + + +class Apps extends React.Component { + routes; + constructor(props) { + super(props); + this.routes = props.routes; + + } + + + + render() { + return ( +
+ +
+ + + + + console.log(value)} + style={{ width: 200}} + /> + + + + +
+ +
+ + ); + } +} + +export default Apps;