import * as React from "react";
import * as ReactDOM from "react-dom";
import * as injectTapEventPlugin from "react-tap-event-plugin";
import MenuBar from "./components/menu/MenuBar";
import SimpleContent from "./components/SimpleContent";
import TopPage from "./components/top/TopPage";
import EventPage from "./components/event/EventPage";
import StagePage from "./components/stage/StagePage";
import SearchPage from "./components/search/SearchPage";
import MapPage from "./components/map/MapPage";
import MapEventList from "./components/map/MapEventList";

import { Router, Route, hashHistory, IndexRoute } from "react-router";
injectTapEventPlugin();

interface Text {
    content: string;
}

class TestElement extends React.Component<Text, {}> {
    render() {
        return (
            <div className="test">
                <MenuBar appName="Shibaura Fes Navi" />
                {this.props.children || <TopPage />}
            </div>
        );
    }
}

ReactDOM.render((
    <Router history={hashHistory}>
        <Route path="/" component={TestElement}>
            <IndexRoute component={TopPage} />
            <Route path="/event" component={EventPage} />
            <Route path="/stage" component={StagePage} />
            <Route path="/search" component={SearchPage} />
            <Route path="/map" component={MapPage} />
            <Route path="/building/:building/:room_or_stall" component={MapEventList} />
        </Route>
    </Router>
), document.getElementById("app"));
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as injectTapEventPlugin from "react-tap-event-plugin";
import MenuBar from "./components/menu/MenuBar";
import SimpleContent from "./components/SimpleContent";
import TopPage from "./components/top/TopPage";
import EventPage from "./components/event/EventPage";
import StagePage from "./components/stage/StagePage";
import SearchPage from "./components/search/SearchPage";
import MapPage from "./components/map/MapPage";
import MapEventList from "./components/map/MapEventList";
import AboutPage from "./components/about/AboutPage";

import { Router, Route, hashHistory, IndexRoute } from "react-router";
injectTapEventPlugin();

interface Text {
    content: string;
}

class TestElement extends React.Component<Text, {}> {
    render() {
        return (
            <div className="test">
                <MenuBar appName="Shibaura Fes Navi" />
                {this.props.children || <TopPage />}
            </div>
        );
    }
}

ReactDOM.render((
    <Router history={hashHistory}>
        <Route path="/" component={TestElement}>
            <IndexRoute component={TopPage} />
            <Route path="/event" component={EventPage} />
            <Route path="/stage" component={StagePage} />
            <Route path="/search" component={SearchPage} />
            <Route path="/map" component={MapPage} />
            <Route path="/building/:building/:room_or_stall" component={MapEventList} />
            <Route path="/about" component={AboutPage} />
        </Route>
    </Router>
), document.getElementById("app"));
Add react-router path for abou
Add react-router path for abou
