Skip to content

Commit

Permalink
fix(routes): remove legacy list route
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason authored and Alexander Fedyashov committed Sep 29, 2016
1 parent 177a811 commit 6f27d83
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions docs/app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,14 @@ import { Route, IndexRedirect } from 'react-router'

import Root from './Components/Root'
import Layout from './Components/Layout'
import ComponentDoc from './Components/ComponentDoc/ComponentDoc'
import PageNotFound from './Views/PageNotFound'
import Introduction from './Views/Introduction'

// TODO remove List once PR is merged and docs are updated to use index.js files
import { List } from 'stardust'
const ListDoc = () => <ComponentDoc _meta={List._meta} />
import PageNotFound from './Views/PageNotFound'

const routes = (
<Route path='/' component={Layout}>
<IndexRedirect to='introduction' />

<Route path='introduction' component={Introduction} />
{/* TODO remove List route once open PR is merged and docs are updated to use index.js files */}
<Route path='elements'>
<Route path='list' component={ListDoc} />
</Route>

{/* v1 Routes */}
<Route path=':type/:name' component={Root} />
<Route path='*' component={PageNotFound} />
</Route>
Expand Down

0 comments on commit 6f27d83

Please sign in to comment.