Skip to content

Commit

Permalink
Add static containers to routes ref #23
Browse files Browse the repository at this point in the history
  • Loading branch information
philawsophizing committed May 28, 2017
1 parent bcf9c66 commit 093b77b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/routes.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
import React from 'react';
import { Route, browserHistory, Switch } from 'react-router-dom';
import Counter from './components/counter.jsx';

import SelectGuesthouse from './containers/select_guesthouse.jsx';
import TravelMethod from './containers/travel_method.jsx';
import MapRoute from './containers/map_route.jsx';
import WalkingDirections from './containers/walking_directions.jsx';
import Success from './containers/success.jsx';


const Routes = () =>
(
<Switch>
<Route exact path='/' component={Counter} history={browserHistory} />
<Route exact path='/*' component={Counter} history={browserHistory} />
<Route exact path='/method' component={TravelMethod} history={browserHistory} />
<Route exact path='/map' component={MapRoute} history={browserHistory} />
<Route exact path='/walking' component={WalkingDirections} history={browserHistory} />
<Route exact path='/success' component={Success} history={browserHistory} />
<Route exact path='/' component={SelectGuesthouse} history={browserHistory} />
<Route path='/*' component={SelectGuesthouse} history={browserHistory} />
</Switch>
);

Expand Down

0 comments on commit 093b77b

Please sign in to comment.