7cf5c1f6fe
- For the active swap, switch from polling to websocket. The returned data is now the Charge data from the commerce, so some parsing will be required. - Allow the user to send other coins that the commerce supports. - Only save the 'chargeCode' to the wallet. The other data can be repopulated from this. - Store the receipt currency. I'm not sure if the commerce supports sending bits from various coins. Take the coin that came with the 'COMPLETED' message for now. - Fix 'lbc' calculation to match IAPI side. - Allow users to see full detauls from "View Past Swaps". - String cleanup - GUI cleanup.
13 lines
461 B
JavaScript
13 lines
461 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doHideModal } from 'redux/actions/app';
|
|
import ModalRemoveBtcSwapAddress from './view';
|
|
import { doRemoveCoinSwap } from 'redux/actions/coinSwap';
|
|
|
|
const select = (state, props) => ({});
|
|
|
|
const perform = (dispatch) => ({
|
|
removeCoinSwap: (chargeCode) => dispatch(doRemoveCoinSwap(chargeCode)),
|
|
closeModal: () => dispatch(doHideModal()),
|
|
});
|
|
|
|
export default connect(select, perform)(ModalRemoveBtcSwapAddress);
|