1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 22:20:06 +02:00
copilot/frontend/src/containers/project/services.js
Sérgio Ramos 355c7d59d9 link service
2017-01-02 22:32:29 +00:00

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>
);
};