2018-08-01 14:13:51 +01:00
|
|
|
import React from 'react';
|
2018-08-02 11:27:33 +01:00
|
|
|
import {Route, Switch} from 'react-router-dom';
|
|
|
|
|
2018-08-07 09:06:11 +01:00
|
|
|
import HomeContainer from './containers/HomeContainer';
|
2018-08-02 13:52:10 -04:00
|
|
|
import ContractsContainer from './containers/ContractsContainer';
|
2018-08-01 14:13:51 +01:00
|
|
|
import NoMatch from './components/NoMatch';
|
2018-08-02 11:27:33 +01:00
|
|
|
import ExplorerLayout from './components/ExplorerLayout';
|
2018-08-03 15:08:13 -04:00
|
|
|
import ProcessesLayout from './components/ProcessesLayout';
|
2018-08-03 08:58:49 -04:00
|
|
|
import ContractLayout from './components/ContractLayout';
|
2018-08-02 19:03:32 +10:00
|
|
|
import FiddleContainer from './containers/FiddleContainer';
|
2018-08-01 14:13:51 +01:00
|
|
|
|
|
|
|
const routes = (
|
|
|
|
<React.Fragment>
|
|
|
|
<Switch>
|
2018-08-07 09:06:11 +01:00
|
|
|
<Route exact path="/embark/" component={HomeContainer} />
|
2018-08-02 11:27:33 +01:00
|
|
|
<Route path="/embark/explorer/" component={ExplorerLayout} />
|
2018-08-03 15:08:13 -04:00
|
|
|
<Route path="/embark/processes/" component={ProcessesLayout} />
|
2018-08-02 13:52:10 -04:00
|
|
|
<Route path="/embark/explorer/accounts" component={AccountsContainer} />
|
2018-08-03 08:58:49 -04:00
|
|
|
<Route path="/embark/contracts/:contractName" component={ContractLayout} />
|
2018-08-02 13:52:10 -04:00
|
|
|
<Route path="/embark/contracts" component={ContractsContainer} />
|
2018-08-02 19:03:32 +10:00
|
|
|
<Route path="/embark/fiddle" component={FiddleContainer} />
|
2018-08-01 14:13:51 +01:00
|
|
|
<Route component={NoMatch} />
|
|
|
|
</Switch>
|
|
|
|
</React.Fragment>
|
2018-08-01 14:09:58 -04:00
|
|
|
);
|
2018-08-01 14:13:51 +01:00
|
|
|
|
2018-08-01 14:09:58 -04:00
|
|
|
export default routes;
|