mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-25 02:20:24 +00:00
e3505fd958
* Empty component, routes setup. * Shared components for all Contracts inputs. Dont do anything yet. * Check in reducer work so far. Still WIP. * Header styling * Check in input work so far, splitting to new branch. * Strip down contracts inputs. Split out into form and explorer * Contract selector * Constantized config actions to use in contract saga. * Interact explorer UI, no functionality * Convert to constants, hook up errors * Deploy and style cleanup. * Remove unnecessary class. * Fix flow errors with css modules * Attempt at fixing all newly introduced flow errors in the contracts branch. * Removed unused validator. * Remove action constants, fix flow specificity in reducers * Fix unit tests * Move network contracts out of redux / sagas, and read directly from state with a selector in mapStateToProps. * Fix initialState -> INITIAL_STATE rename * foreach push -> concat
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
import React from 'react';
|
|
import { browserHistory, Redirect, Route } from 'react-router';
|
|
import { useBasename } from 'history';
|
|
import { App } from 'containers';
|
|
import GenerateWallet from 'containers/Tabs/GenerateWallet';
|
|
import ViewWallet from 'containers/Tabs/ViewWallet';
|
|
import Help from 'containers/Tabs/Help';
|
|
import Swap from 'containers/Tabs/Swap';
|
|
import SendTransaction from 'containers/Tabs/SendTransaction';
|
|
import Contracts from 'containers/Tabs/Contracts';
|
|
export const history = getHistory();
|
|
|
|
export const Routing = () =>
|
|
<Route name="App" path="" component={App}>
|
|
<Route name="GenerateWallet" path="/" component={GenerateWallet} />
|
|
<Route name="ViewWallet" path="/view-wallet" component={ViewWallet} />
|
|
<Route name="Help" path="/help" component={Help} />
|
|
<Route name="Swap" path="/swap" component={Swap} />
|
|
<Route name="Send" path="/send-transaction" component={SendTransaction} />
|
|
<Route name="Contracts" path="/contracts" component={Contracts} />
|
|
|
|
<Redirect from="/*" to="/" />
|
|
</Route>;
|
|
|
|
function getHistory() {
|
|
const basename = '';
|
|
return useBasename(() => browserHistory)({ basename });
|
|
}
|