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.
16 lines (13 loc) • 508 B
JSX
import React from "react";
import wms from "../../wms";
import { Route } from "react-router";
import EntityPage from "./pages/EntityPage.jsx";
let routers = [];
let entitiesConfig = wms.getAllWidgetConfiguration();
entitiesConfig.forEach( ( entityConfig, index )=> {
routers.push( <Route key={index}
entityType={entityConfig.entityType}
path={entityConfig.route}
component={EntityPage}></Route> );
} );
export default routers;