From 3ac1b207472f16f62fbcd26f847854f64133e2fa Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Fri, 22 Feb 2019 17:40:58 +0100 Subject: [PATCH] display NoBackup modal --- src/components/modals/index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/components/modals/index.js b/src/components/modals/index.js index 4db54d9e..7fcb70db 100644 --- a/src/components/modals/index.js +++ b/src/components/modals/index.js @@ -19,6 +19,7 @@ import PassphraseType from 'components/modals/passphrase/Type'; import ConfirmSignTx from 'components/modals/confirm/SignTx'; import ConfirmAction from 'components/modals/confirm/Action'; import ConfirmUnverifiedAddress from 'components/modals/confirm/UnverifiedAddress'; +import ConfirmNoBackup from 'components/modals/confirm/NoBackup'; import ForgetDevice from 'components/modals/device/Forget'; import RememberDevice from 'components/modals/device/Remember'; import DuplicateDevice from 'components/modals/device/Duplicate'; @@ -189,6 +190,19 @@ const getQrModal = (props: Props) => { ); }; +const getConfirmationModal = (props: Props) => { + const { modal, modalActions } = props; + + if (modal.context !== MODAL.CONTEXT_CONFIRMATION) return null; + + switch (modal.windowType) { + case 'no-backup': + return (); + default: + return null; + } +}; + // modal container component const Modal = (props: Props) => { const { modal } = props; @@ -205,6 +219,9 @@ const Modal = (props: Props) => { case MODAL.CONTEXT_SCAN_QR: component = getQrModal(props); break; + case MODAL.CONTEXT_CONFIRMATION: + component = getConfirmationModal(props); + break; default: break; }