joyent-portal/ui/docs/containers/app/index.js

46 lines
828 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-26 16:44:17 +03:00
<Column md={2} xs={12}>
2016-10-26 16:05:07 +03:00
<Navigation />
</Column>
2016-10-26 16:44:17 +03:00
<Column md={10} 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>
);
};