{"size": 1331, "ext": "js", "max_stars_repo_path": "src/routes.js", "max_stars_repo_name": "satryarangga/triparoom", "max_stars_repo_stars_event_min_datetime": "2020-06-20T12:29:56.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-12T16:28:25.000Z", "max_issues_repo_path": "src/routes.js", "max_issues_repo_name": "satryarangga/triparoom", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/routes.js", "max_forks_repo_name": "satryarangga/triparoom", "max_forks_repo_forks_event_min_datetime": "2018-04-02T04:27:58.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-25T19:26:22.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 42.935483871, "max_line_length": 108, "alphanum_fraction": 0.6957175056}
import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';

import Home from './components/home/';
import HotelList from './components/hotel/list/';
import HotelDetail from './containers/hotel/detail';
import HotelOrder from './containers/hotel/order';
import FlightOrder from './containers/flight/order';
import FlightConfirmation from './containers/flight/confirmation';
import HotelOrderConfirmation from './components/hotel/order/confirmation';
import FlightList from './components/flight/list/';

const Routes = () => {
  return (
    <BrowserRouter>
      <Switch>
        <Route path="/order" component={HotelOrder} />
        <Route path="/flight-confirmation/:email/:phone" component={FlightConfirmation} />
        <Route path="/flight-booking/:depFlightId/:retFlightId/:depDate/:retDate" component={FlightOrder} />
        <Route path="/flight/:dcode/:acode/:ddate/:rdate/:adult/:child/:infant" component={FlightList} />
        <Route path="/process-payment" component={HotelOrderConfirmation} />
        <Route path="/hotel/:keyword/:start/:night/:room/:adult" component={HotelList} />
        <Route path="/:uri/:startdate/:night/:room/:adult/" component={HotelDetail} />
        <Route path="/" component={Home} />
      </Switch>
    </BrowserRouter>
  );
}

export default Routes;
