mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 22:20:06 +02:00
33 lines
658 B
JavaScript
33 lines
658 B
JavaScript
const React = require('react');
|
|
const ReactRouter = require('react-router');
|
|
|
|
const Section = require('./section');
|
|
const Services = require('@containers/services');
|
|
const Service = require('@containers/service');
|
|
|
|
const {
|
|
Match
|
|
} = ReactRouter;
|
|
|
|
module.exports = () => {
|
|
const list = (props) => (
|
|
<Section {...props}>
|
|
<Services {...props} />
|
|
</Section>
|
|
);
|
|
|
|
return (
|
|
<div>
|
|
<Match
|
|
component={list}
|
|
exactly
|
|
pattern='/:org/projects/:projectId/services'
|
|
/>
|
|
<Match
|
|
component={Service}
|
|
pattern='/:org/projects/:projectId/services/:serviceId/:section?'
|
|
/>
|
|
</div>
|
|
);
|
|
};
|