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/AppList.js index 0c2b611cd29..728fff03825 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/AppList.js @@ -1,30 +1,25 @@ import React from "react"; import AppCard from "./AppCard"; import {Col, Row} from "antd"; +import {connect} from "react-redux"; -class AppList extends React.Component { +// connecting state.articles with the component +const mapStateToProps= state => { + return {apps : state.apps} +}; + + +class ConnectedAppList extends React.Component { constructor(props) { super(props); - this.state = { - apps: [ - { - id: 1, - title: 'Hi', - platform: 'android', - description: 'lorem', - subType: 'FREE', - type: 'ENTERPRISE' - } - ] - } } render() { return ( - {this.state.apps.map(app => ( - - ( + +