-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Alerts): finish receive currency success alerts
- Loading branch information
Showing
13 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/blockchain-wallet-v4-frontend/src/data/components/requestBch/sagaRegister.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { takeEvery } from 'redux-saga/effects' | ||
import * as AT from '../../actionTypes' | ||
import sagas from './sagas' | ||
|
||
export default () => { | ||
const requestBchSagas = sagas() | ||
|
||
return function * () { | ||
yield takeEvery(AT.core.webSocket.bch.PAYMENT_RECEIVED, requestBchSagas.bchPaymentReceived) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/blockchain-wallet-v4-frontend/src/data/components/requestBch/sagas.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { put } from 'redux-saga/effects' | ||
import * as actions from '../../actions.js' | ||
import * as C from 'services/AlertService' | ||
|
||
export default () => { | ||
const bchPaymentReceived = function * (action) { | ||
yield put(actions.alerts.displaySuccess(C.RECEIVE_BCH_SUCCESS)) | ||
} | ||
|
||
return { | ||
bchPaymentReceived | ||
} | ||
} |
8 changes: 5 additions & 3 deletions
8
packages/blockchain-wallet-v4-frontend/src/data/components/requestBtc/sagaRegister.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { takeLatest } from 'redux-saga/effects' | ||
import * as AT from './actionTypes' | ||
import { takeEvery, takeLatest } from 'redux-saga/effects' | ||
import * as requestAT from './actionTypes' | ||
import * as AT from '../../actionTypes' | ||
import sagas from './sagas' | ||
|
||
export default () => { | ||
const requestBtcSagas = sagas() | ||
|
||
return function * () { | ||
yield takeLatest(AT.REQUEST_BTC_FIRST_STEP_SUBMIT_CLICKED, requestBtcSagas.firstStepSubmitClicked) | ||
yield takeLatest(requestAT.REQUEST_BTC_FIRST_STEP_SUBMIT_CLICKED, requestBtcSagas.firstStepSubmitClicked) | ||
yield takeEvery(AT.core.webSocket.bitcoin.PAYMENT_RECEIVED, requestBtcSagas.btcPaymentReceived) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/blockchain-wallet-v4-frontend/src/data/components/requestEth/sagaRegister.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { takeEvery } from 'redux-saga/effects' | ||
import * as AT from '../../actionTypes' | ||
import sagas from './sagas' | ||
|
||
export default () => { | ||
const requestEthSagas = sagas() | ||
|
||
return function * () { | ||
yield takeEvery(AT.core.webSocket.ethereum.PAYMENT_RECEIVED, requestEthSagas.ethPaymentReceived) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/blockchain-wallet-v4-frontend/src/data/components/requestEth/sagas.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { put } from 'redux-saga/effects' | ||
import * as actions from '../../actions.js' | ||
import * as C from 'services/AlertService' | ||
|
||
export default () => { | ||
const ethPaymentReceived = function * (action) { | ||
yield put(actions.alerts.displaySuccess(C.RECEIVE_ETH_SUCCESS)) | ||
} | ||
|
||
return { | ||
ethPaymentReceived | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters