mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
35 lines
557 B
JavaScript
35 lines
557 B
JavaScript
/* - TOOD: Use our own grid
|
|
*/
|
|
|
|
const React = require('react');
|
|
const ReactRouter = require('react-router');
|
|
|
|
const Navigation = require('./navigation.js');
|
|
const Home = require('../home');
|
|
const Item = require('../item/');
|
|
|
|
const {
|
|
Base
|
|
} = require('../../../src');
|
|
|
|
const {
|
|
Match
|
|
} = ReactRouter;
|
|
|
|
module.exports = () => {
|
|
return (
|
|
<Base>
|
|
<Navigation />
|
|
<Match
|
|
component={Home}
|
|
exactly
|
|
pattern='/'
|
|
/>
|
|
<Match
|
|
component={Item}
|
|
pattern='/:parent?/:name'
|
|
/>
|
|
</Base>
|
|
);
|
|
};
|