mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
Refactor/remove commented out codes.
This commit is contained in:
parent
f5c05587cb
commit
eb658ec9ff
@ -1,19 +1,12 @@
|
||||
import React from 'react';
|
||||
import {Route, Redirect, browserHistory, IndexRoute} from 'react-router';
|
||||
import {useBasename} from 'history'
|
||||
import {App, Tabs} from 'containers';
|
||||
import React from "react";
|
||||
import {browserHistory, Redirect, Route} from "react-router";
|
||||
import {useBasename} from "history";
|
||||
import {App, Tabs} from "containers";
|
||||
|
||||
export const history = getHistory()
|
||||
|
||||
/**
|
||||
* Returns application routing with protected by AuthCheck func routes
|
||||
* @param {Function} AuthCheck checks is user logged in
|
||||
*/
|
||||
export const Routing = (AuthCheck) => (
|
||||
export const Routing = () => (
|
||||
<Route name="App" path='' component={App}>
|
||||
{/*<IndexRoute name="Login" component={Login}/>*/}
|
||||
{/*<Route name="Login" path="/auth" component={Login}/>*/}
|
||||
{/*<Route name="Inbox" path="/inbox" component={Inbox}/>*/}
|
||||
<Route name="Tabs" path="/" component={Tabs}/>
|
||||
<Redirect from="/*" to="/"/>
|
||||
</Route>
|
||||
|
Loading…
x
Reference in New Issue
Block a user