UNPKG

trc-client-core

Version:
29 lines (25 loc) 1.64 kB
import React from 'react'; import LearningPlanHandler from 'react-router-proxy!trc-client-core/src/learningPlan/LearningPlanHandler'; import LearningPlan from 'react-router-proxy!trc-client-core/src/learningPlan/LearningPlan'; import ProductPathway from 'react-router-proxy!trc-client-core/src/learningPlan/ProductPathway'; import TechnicalLearningPlan from 'react-router-proxy!trc-client-core/src/learningPlan/TechnicalLearningPlan'; import GapReportViewGeneric from 'react-router-proxy!trc-client-core/src/report/GapReportViewGeneric'; import GapReportHandler from 'react-router-proxy!trc-client-core/src/report/GapReportHandler'; import GapReportViewToyotaForLife from 'react-router-proxy!trc-client-core/src/report/GapReportViewToyotaForLife'; import GapReportToolbar from 'trc-client-core/src/report/GapReportToolbar'; import {IndexRoute, Route} from 'react-router'; export default ( <Route> <Route path="gapreport" component={GapReportHandler}> <Route path="toyota-for-life(/:gapReportView)" components={{toolbar: GapReportToolbar, gapReport: GapReportViewToyotaForLife}} /> <Route path=":pathwayId(/:gapReportView)"> <IndexRoute components={{toolbar: GapReportToolbar, gapReport: GapReportViewGeneric}} /> </Route> </Route> <Route path="learning-plan" component={LearningPlanHandler}> <Route path="technical_career_plan" component={TechnicalLearningPlan} /> <Route path="product_training_plan" component={ProductPathway}/> <Route path=":learningPlanId" component={LearningPlan}/> </Route> </Route> );