|
@@ -1,5 +1,6 @@
|
|
import React from "react";
|
|
import React from "react";
|
|
import { IndexRoute, Route, Router, hashHistory as history } from "react-router";
|
|
import { IndexRoute, Route, Router, hashHistory as history } from "react-router";
|
|
|
|
+import ConfirmBattleContainer from "../containers/ConfirmBattleContainer";
|
|
import Main from "../components/Main";
|
|
import Main from "../components/Main";
|
|
import Home from "../components/Home";
|
|
import Home from "../components/Home";
|
|
import PromptContainer from "../containers/PromptContainer";
|
|
import PromptContainer from "../containers/PromptContainer";
|
|
@@ -10,6 +11,7 @@ const routes = (
|
|
<IndexRoute component={Home} />
|
|
<IndexRoute component={Home} />
|
|
<Route path="playerOne" component={PromptContainer} header="Player One" />
|
|
<Route path="playerOne" component={PromptContainer} header="Player One" />
|
|
<Route path="playerTwo/:playerOne" component={PromptContainer} header="Player Two" />
|
|
<Route path="playerTwo/:playerOne" component={PromptContainer} header="Player Two" />
|
|
|
|
+ <Route path="battle" component={ConfirmBattleContainer} />
|
|
</Route>
|
|
</Route>
|
|
</Router>
|
|
</Router>
|
|
);
|
|
);
|