From 4864d5f8ec39e1ad2f2e0652c1d516a145d08129 Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Tue, 30 Apr 2019 15:50:05 +0530 Subject: [PATCH] moved components to sub directory --- .../react-app/src/components/{ => apps}/AppCard.js | 2 +- .../react-app/src/components/{ => apps}/AppList.js | 2 +- .../react-app/src/pages/dashboard/apps/Apps.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/{ => apps}/AppCard.js (94%) rename components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/{ => apps}/AppList.js (94%) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/AppCard.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/AppCard.js similarity index 94% rename from components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/AppCard.js rename to components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/AppCard.js index d965e05d7f0..ac1f66f2da3 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/AppCard.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/AppCard.js @@ -2,7 +2,7 @@ import { Skeleton, Switch, Card, Icon, Avatar, Typography } from 'antd'; import React from "react"; -import config from "../../public/conf/config.json"; +import config from "../../../public/conf/config.json"; const { Meta } = Card; const { Text } = Typography; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/AppList.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/AppList.js similarity index 94% rename from components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/AppList.js rename to components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/AppList.js index d6c54f4039a..08da7efe86f 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/AppList.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/AppList.js @@ -2,7 +2,7 @@ import React from "react"; import AppCard from "./AppCard"; import {Col, Row} from "antd"; import {connect} from "react-redux"; -import {getApps} from "../js/actions"; +import {getApps} from "../../js/actions"; // connecting state.articles with the component const mapStateToProps= state => { 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 index 92d366a3ae6..13477af124c 100644 --- 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 @@ -1,7 +1,7 @@ import React from "react"; import "antd/dist/antd.css"; import {PageHeader, Typography,Input, Button, Row, Col} from "antd"; -import AppList from "../../../components/AppList"; +import AppList from "../../../components/apps/AppList"; const Search = Input.Search;