Add confirm transaction modal.

This commit is contained in:
Daniel Dominguez 2018-05-28 17:05:22 -03:00
parent 8cbeed7929
commit 2cfef2fc53
3 changed files with 12 additions and 4 deletions

11
dist/bundle.js vendored
View file

@ -1795,7 +1795,7 @@ function doFetchRewardedContent() {
}
function doFetchClaimsByChannel(uri, page) {
return function (dispatch, getState) {
return function (dispatch) {
dispatch({
type: ACTIONS.FETCH_CHANNEL_CLAIMS_STARTED,
data: { uri: uri, page: page }
@ -5232,7 +5232,9 @@ reducers[ACTIONS.CREATE_NOTIFICATION] = function (state, action) {
id = notification.id;
var uri = notificationProps.uri,
nout = notificationProps.nout,
txid = notificationProps.txid;
txid = notificationProps.txid,
amount = notificationProps.amount,
address = notificationProps.address;
var queue = Object.assign([], state.queue);
@ -5248,7 +5250,9 @@ reducers[ACTIONS.CREATE_NOTIFICATION] = function (state, action) {
notificationProps: {
uri: uri,
txid: txid,
nout: nout
nout: nout,
amount: amount,
address: address
}
});
@ -5317,6 +5321,7 @@ var FIRST_SUBSCRIPTION = exports.FIRST_SUBSCRIPTION = 'firstSubscription';
var SEND_TIP = exports.SEND_TIP = 'send_tip';
var PUBLISH = exports.PUBLISH = 'publish';
var SEARCH = exports.SEARCH = 'search';
var CONFIRM_TRANSACTION = exports.CONFIRM_TRANSACTION = 'confirm_transaction';
/***/ }),
/* 35 */

View file

@ -21,3 +21,4 @@ export const FIRST_SUBSCRIPTION = 'firstSubscription';
export const SEND_TIP = 'send_tip';
export const PUBLISH = 'publish';
export const SEARCH = 'search';
export const CONFIRM_TRANSACTION = 'confirm_transaction';

View file

@ -11,7 +11,7 @@ const defaultState = {
reducers[ACTIONS.CREATE_NOTIFICATION] = (state, action) => {
const { notification, notificationProps } = action.data;
const { title, message, type, error, displayType, id } = notification;
const { uri, nout, txid } = notificationProps;
const { uri, nout, txid, amount, address } = notificationProps;
const queue = Object.assign([], state.queue);
queue.push({
@ -27,6 +27,8 @@ reducers[ACTIONS.CREATE_NOTIFICATION] = (state, action) => {
uri,
txid,
nout,
amount,
address,
},
});