mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
redirect /signup -> /login
This commit is contained in:
parent
be093091a3
commit
2c7d86c5d5
10
js/routes.js
10
js/routes.js
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Route } from 'react-router';
|
import { Route, Redirect } from 'react-router';
|
||||||
|
|
||||||
import getPrizeRoutes from './components/whitelabel/prize/prize_routes';
|
import getPrizeRoutes from './components/whitelabel/prize/prize_routes';
|
||||||
import getWalletRoutes from './components/whitelabel/wallet/wallet_routes';
|
import getWalletRoutes from './components/whitelabel/wallet/wallet_routes';
|
||||||
@ -14,7 +14,6 @@ import EditionContainer from './components/ascribe_detail/edition_container';
|
|||||||
|
|
||||||
import LoginContainer from './components/login_container';
|
import LoginContainer from './components/login_container';
|
||||||
import LogoutContainer from './components/logout_container';
|
import LogoutContainer from './components/logout_container';
|
||||||
import SignupContainer from './components/signup_container';
|
|
||||||
import PasswordResetContainer from './components/password_reset_container';
|
import PasswordResetContainer from './components/password_reset_container';
|
||||||
|
|
||||||
import ContractSettings from './components/ascribe_settings/contract_settings';
|
import ContractSettings from './components/ascribe_settings/contract_settings';
|
||||||
@ -49,10 +48,9 @@ const COMMON_ROUTES = (
|
|||||||
headerTitle={getLangText('COLLECTION')}
|
headerTitle={getLangText('COLLECTION')}
|
||||||
disableOn='noPieces'
|
disableOn='noPieces'
|
||||||
footer={Footer} />
|
footer={Footer} />
|
||||||
<Route
|
<Route path='signup'>
|
||||||
path='signup'
|
<Redirect to="/login" />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)}
|
</Route>
|
||||||
footer={Footer} />
|
|
||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(LogoutContainer)}
|
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(LogoutContainer)}
|
||||||
|
Loading…
Reference in New Issue
Block a user