Skip to content

Instantly share code, notes, and snippets.

@sophistifunk
Created April 4, 2016 07:08
Show Gist options
  • Save sophistifunk/2c1b7629c7c76f1f780e52d1ebcb2435 to your computer and use it in GitHub Desktop.
Save sophistifunk/2c1b7629c7c76f1f780e52d1ebcb2435 to your computer and use it in GitHub Desktop.
//From This:
<Route path={rootRoutePath} component={OrganisationPipelines}>
<IndexRoute component={Pipelines}/>
<Route path=":pipeline/branches" component={MultiBranch}/>
<Route path=":pipeline/activity" component={Activity}/>
<Route path=":pipeline/pr" component={PullRequests}/>
</Route>
//To this:
<Route path={rootRoutePath} component={OrganisationPipelines}>
<IndexRoute component={Pipelines}/>
<Route path=":pipeline" component={NewFingWotFetchesPipelineAndShowsTabs}>
<Route path="/branches" component={MultiBranch}/>
<Route path="/activity" component={Activity}/>
<Route path="/pr" component={PullRequests}/>
</Route>
</Route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment