Refactor/remove commented out codes.

This commit is contained in:
Daniel Ternyak 2017-04-24 18:58:48 -05:00
parent f5c05587cb
commit eb658ec9ff

View File

@ -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>