mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
a66337ac0a
### Re-implements: * min/max validators on initial currency swap selection * polling of order status * timer that persists across refreshes via localStorage (computed based on `createdTime` and `validFor` amount) * swap persists across refreshes once order is created. * various type refactors ### New additions: * *SimpleButton* (can be PRd separately on request) * clear loading state after order create (via SimpleButton and font-awesome) * buffers for non-BTC swaps (bity does not actually accept 0.01 BTC worth of ETH as they claim they do in their JSON response, so a magic number of 10% is added to the minimum).
33 lines
812 B
JavaScript
33 lines
812 B
JavaScript
// Application styles must come first in order, to allow for overrides
|
|
import 'assets/styles/etherwallet-master.less';
|
|
import 'font-awesome/scss/font-awesome.scss';
|
|
|
|
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import { syncHistoryWithStore } from 'react-router-redux';
|
|
|
|
import { Root } from 'components';
|
|
import { Routing, history } from './routing';
|
|
import { store } from './store';
|
|
|
|
const renderRoot = Root => {
|
|
let syncedHistory = syncHistoryWithStore(history, store);
|
|
render(
|
|
<Root
|
|
key={Math.random()}
|
|
routes={Routing}
|
|
history={syncedHistory}
|
|
store={store}
|
|
/>,
|
|
document.getElementById('app')
|
|
);
|
|
};
|
|
|
|
renderRoot(Root);
|
|
|
|
if (module.hot) {
|
|
module.hot.accept('reducers/index', () =>
|
|
store.replaceReducer(require('reducers/index').default)
|
|
);
|
|
}
|