mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-23 01:19:02 +00:00
routing uses new dir structure; wire up ViewWallet route
This commit is contained in:
parent
f116bfe7ad
commit
3207c367ed
@ -1,19 +1,25 @@
|
||||
import React from "react";
|
||||
import {browserHistory, Redirect, Route} from "react-router";
|
||||
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 Routing = () => (
|
||||
<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="/"/>
|
||||
</Route>
|
||||
)
|
||||
|
||||
|
||||
function getHistory() {
|
||||
const basename = ''
|
||||
const basename = ''
|
||||
return useBasename(() => browserHistory)({basename})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user