From 4339f04e80be74dd318e03f75fcf3410e923d30d Mon Sep 17 00:00:00 2001 From: brunobar79 Date: Mon, 30 Jul 2018 17:50:05 -0400 Subject: use existing modals --- ui/app/actions.js | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'ui/app/actions.js') diff --git a/ui/app/actions.js b/ui/app/actions.js index 7608db6dc..0eb47edba 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -33,11 +33,7 @@ var actions = { ALERT_CLOSE: 'UI_ALERT_CLOSE', showAlert: showAlert, hideAlert: hideAlert, - QR_SCANNER_OPEN: 'UI_QR_SCANNER_OPEN', - QR_SCANNER_CLOSE: 'UI_QR_SCANNER_CLOSE', QR_CODE_DETECTED: 'UI_QR_CODE_DETECTED', - showQrScanner, - hideQrScanner, qrCodeDetected, // network dropdown open NETWORK_DROPDOWN_OPEN: 'UI_NETWORK_DROPDOWN_OPEN', @@ -310,7 +306,6 @@ var actions = { CLEAR_PENDING_TOKENS: 'CLEAR_PENDING_TOKENS', setPendingTokens, clearPendingTokens, - scanQrCode, } module.exports = actions @@ -1813,12 +1808,6 @@ function hideAlert () { } } -function showQrScanner () { - return { - type: actions.QR_SCANNER_OPEN, - } -} - function qrCodeDetected (qrCodeData) { return { type: actions.QR_CODE_DETECTED, @@ -1826,13 +1815,6 @@ function qrCodeDetected (qrCodeData) { } } -function hideQrScanner () { - return { - type: actions.QR_SCANNER_CLOSE, - } -} - - function showLoadingIndication (message) { return { type: actions.SHOW_LOADING, @@ -2275,9 +2257,3 @@ function clearPendingTokens () { type: actions.CLEAR_PENDING_TOKENS, } } - -function scanQrCode () { - return (dispatch, getState) => { - dispatch(actions.showQrScanner()) - } -} -- cgit