Merge pull request #35 from dan1d/add-confirmation-modal

Add confirm transaction modal.
This commit is contained in:
Sean Yesmunt 2018-05-29 21:28:23 -04:00 committed by GitHub
commit 8db54c08dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

9
dist/bundle.js vendored
View file

@ -5233,7 +5233,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);
@ -5249,7 +5251,9 @@ reducers[ACTIONS.CREATE_NOTIFICATION] = function (state, action) {
notificationProps: {
uri: uri,
txid: txid,
nout: nout
nout: nout,
amount: amount,
address: address
}
});
@ -5318,6 +5322,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,
},
});