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/reducers/app.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'ui/app/reducers/app.js') diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index 9775638a7..fed8b1b95 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -50,7 +50,6 @@ function reduceApp (state, action) { }, sidebarOpen: false, alertOpen: false, - qrScannerOpen: false, alertMessage: null, qrCodeData: null, networkDropdownOpen: false, @@ -104,17 +103,8 @@ function reduceApp (state, action) { alertOpen: false, alertMessage: null, }) - // qr scanner methods - case actions.QR_SCANNER_OPEN: - return extend(appState, { - qrScannerOpen: true, - }) - - case actions.QR_SCANNER_CLOSE: - return extend(appState, { - qrScannerOpen: false, - }) + // qr scanner methods case actions.QR_CODE_DETECTED: return extend(appState, { qrCodeData: action.value, -- cgit