cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
20 lines (16 loc) • 514 B
JSX
import React, { Component } from 'react';
import CluedInApp from '../cluedinapp.jsx';
import { connect } from 'react-redux';
class EntityPage extends Component {
render() {
const { id } = this.props.params;
const { entityType } = this.props.route;
return (<CluedInApp paramToListen={id} type={entityType} entityId={id}></CluedInApp>);
}
}
var select = ( state, ownProps ) => {
return {
id: ownProps.params.id
};
};
export default connect( select )( EntityPage );