2016-10-26 13:56:51 +03:00
|
|
|
/* - TOOD: Use our own grid
|
|
|
|
*/
|
|
|
|
|
2016-10-25 16:01:42 +03:00
|
|
|
const React = require('react');
|
|
|
|
const ReactRouter = require('react-router');
|
|
|
|
|
|
|
|
const Navigation = require('./navigation.js');
|
|
|
|
const Home = require('../home');
|
|
|
|
const Item = require('../item/');
|
|
|
|
|
|
|
|
const {
|
|
|
|
Base
|
2016-10-25 22:15:33 +03:00
|
|
|
} = require('../../../src');
|
2016-10-25 16:01:42 +03:00
|
|
|
|
|
|
|
const {
|
|
|
|
Match
|
|
|
|
} = ReactRouter;
|
|
|
|
|
|
|
|
module.exports = () => {
|
|
|
|
return (
|
|
|
|
<Base>
|
|
|
|
<Navigation />
|
2016-10-25 22:15:33 +03:00
|
|
|
<Match
|
|
|
|
component={Home}
|
|
|
|
exactly
|
|
|
|
pattern='/'
|
|
|
|
/>
|
|
|
|
<Match
|
|
|
|
component={Item}
|
|
|
|
pattern='/:parent?/:name'
|
|
|
|
/>
|
2016-10-25 16:01:42 +03:00
|
|
|
</Base>
|
|
|
|
);
|
|
|
|
};
|