diff --git a/README.md b/README.md index a1dae81..a3b3e82 100644 --- a/README.md +++ b/README.md @@ -369,6 +369,8 @@ See the [example](https://github.com/c8r/x0/tree/master/examples/webpack-config) - [ ] props.Component in custom apps - [ ] peer deps +- [ ] Head component with react helmet +- [ ] changelog/docs - [x] default route sorting - [x] route dirname/full path - [x] pass front-matter as props diff --git a/docs/_app.js b/docs/_app.js index 50423a9..f07cf9a 100644 --- a/docs/_app.js +++ b/docs/_app.js @@ -7,6 +7,7 @@ import { Box, Container, } from 'rebass' +import Layout from './_layout' export default class App extends React.Component { static defaultProps = { @@ -18,8 +19,12 @@ export default class App extends React.Component { return ( - - {true && ( + {false ? ( + + {render()} + + ) : ( +
    {routes.map(route => ( @@ -31,13 +36,13 @@ export default class App extends React.Component { ))}
- )} - - - {render()} - - -
+ + + {render()} + + +
+ )}
) } diff --git a/docs/__app.js b/docs/_layout.js similarity index 96% rename from docs/__app.js rename to docs/_layout.js index e6aca89..0ea326f 100644 --- a/docs/__app.js +++ b/docs/_layout.js @@ -12,7 +12,7 @@ import { Link } from 'react-router-dom' import { Logo } from '@compositor/logo' import theme from './theme' -export default ({ render }) => +export default ({ children }) => - {render()} + {children} diff --git a/src/index.js b/src/index.js index 608ca9b..cc1fabf 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,4 @@ +export { Link, NavLink } from 'react-router-dom' export { default as ScopeProvider } from './ScopeProvider' export { default as LiveEditor } from './LiveEditor' export { default as LivePreview } from './LivePreview'