File size: 839 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import { AuthRoute } from '../util/route_util';
import SearchContainer from './search/search_container';
import Splash from './splash/splash';
import { Route, Redirect, Switch, Link, HashRouter } from 'react-router-dom';
import SpotShowContainer from './spot/spot_show/spot_show_container';
import Modal from '../components/modal/modal';
import UserShowContainer from './user/user_show_container';


const App = () => (
        <div>
            <Modal />
            <Switch>
                <Route path="/booking" component={UserShowContainer}/>
                <Route path="/spots/:spotId" component={SpotShowContainer}/>
                <Route path="/spots" component={SearchContainer} />
                <Route path="/" component={Splash} />
            </Switch>    
        </div>
);

export default App;