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>
<Column xs={12} md={2}>
<Navigation />
</Column>
<Column xs={12} md={10}>
<Match
component={Home}
exactly
pattern='/'
/>
<Match
component={Item}
pattern='/:parent?/:name'
/>
</Column>
</Row>
</Container>
2016-10-25 16:01:42 +03:00
</Base>
);
};