routing uses new dir structure; wire up ViewWallet route

This commit is contained in:
Daniel Ternyak 2017-04-26 22:59:51 -05:00
parent f116bfe7ad
commit 3207c367ed

View File

@ -1,13 +1,19 @@
import React from "react"; import React from "react";
import {browserHistory, Redirect, Route} from "react-router"; import {browserHistory, Redirect, Route} from "react-router";
import {useBasename} from "history"; import {useBasename} from "history";
import {App, Tabs} from "containers"; import {App} from "containers";
import GenerateWallet from "containers/Tabs/GenerateWallet"
import ViewWallet from "containers/Tabs/ViewWallet"
console.log(GenerateWallet)
export const history = getHistory() export const history = getHistory()
export const Routing = () => ( export const Routing = () => (
<Route name="App" path='' component={App}> <Route name="App" path='' component={App}>
<Route name="Tabs" path="/" component={Tabs}/> <Route name="GenerateWallet" path="/" component={GenerateWallet}/>
<Route name="ViewWallet" path="/view-wallet" component={ViewWallet}/>
<Redirect from="/*" to="/"/> <Redirect from="/*" to="/"/>
</Route> </Route>
) )