Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
chore(docz-theme-default): some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Apr 20, 2018
1 parent d9cc235 commit eea3d94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
3 changes: 1 addition & 2 deletions packages/docz-theme-default/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
],
"plugins": [
"emotion",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-namespace-from"
"@babel/plugin-proposal-class-properties"
]
}
22 changes: 9 additions & 13 deletions packages/docz-theme-default/src/components/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@ import { Doc } from './Doc'

export const View = () => (
<Docs>
{({ loading, docs }) =>
loading ? (
<div>loading...</div>
) : (
docs.map(doc => (
<Route
exact
key={doc.id}
path={doc.route}
render={() => <Doc {...doc} />}
/>
))
)
{({ docs }) =>
docs.map(doc => (
<Route
exact
key={doc.id}
path={doc.route}
render={() => <Doc {...doc} />}
/>
))
}
</Docs>
)
1 change: 0 additions & 1 deletion packages/docz-theme-default/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import './styles'
import * as React from 'react'

import { injectGlobal } from 'emotion'
import { Helmet } from 'react-helmet'
import { BrowserRouter } from 'react-router-dom'
import { theme } from 'docz-react'

Expand Down

0 comments on commit eea3d94

Please sign in to comment.