1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00
copilot/ui/docs/containers/app/index.js

54 lines
936 B
JavaScript
Raw Normal View History

/* - 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 {
2016-10-26 16:05:07 +03:00
Base,
Container,
Row,
Column
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>
2016-10-26 16:05:07 +03:00
<Container fluid>
<Row>
2016-10-27 12:51:47 +03:00
<Column
md={2}
sm={3}
xs={12}
>
2016-10-26 16:05:07 +03:00
<Navigation />
</Column>
2016-10-27 12:51:47 +03:00
<Column
md={10}
sm={9}
xs={12}
>
2016-10-26 16:05:07 +03:00
<Match
component={Home}
exactly
pattern='/'
/>
<Match
component={Item}
pattern='/:parent?/:name'
/>
</Column>
</Row>
</Container>
2016-10-25 16:01:42 +03:00
</Base>
);
};