From 9617f52ec9ca83c17796ace75335aa4f2e13b907 Mon Sep 17 00:00:00 2001 From: Tangem Date: Mon, 4 May 2026 13:37:43 +0100 Subject: [PATCH] Updated on 2026-08-14 --- .../component/DefaultWalletBackupComponent.kt | 16 ++++++++++++++++ .../ui/component/GoogleDriveFakeDoorDialog.kt | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 features/hot-wallet/impl/src/main/kotlin/com/tangem/features/hotwallet/walletbackup/ui/component/GoogleDriveFakeDoorDialog.kt diff --git a/features/hot-wallet/impl/src/main/kotlin/com/tangem/features/hotwallet/walletbackup/component/DefaultWalletBackupComponent.kt b/features/hot-wallet/impl/src/main/kotlin/com/tangem/features/hotwallet/walletbackup/component/DefaultWalletBackupComponent.kt index 5c9921bdf6..c86ca0daee 100644 --- a/features/hot-wallet/impl/src/main/kotlin/com/tangem/features/hotwallet/walletbackup/component/DefaultWalletBackupComponent.kt +++ b/features/hot-wallet/impl/src/main/kotlin/com/tangem/features/hotwallet/walletbackup/component/DefaultWalletBackupComponent.kt @@ -7,6 +7,7 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle import com.tangem.core.decompose.context.AppComponentContext import com.tangem.core.decompose.model.getOrCreateModel import com.tangem.features.hotwallet.WalletBackupComponent +import com.tangem.features.hotwallet.walletbackup.entity.Action import com.tangem.features.hotwallet.walletbackup.model.WalletBackupModel import com.tangem.features.hotwallet.walletbackup.ui.WalletBackupContent import dagger.assisted.Assisted @@ -26,6 +27,21 @@ internal class DefaultWalletBackupComponent @AssistedInject constructor( WalletBackupContent( state = state, modifier = modifier, + onBackClick = { + model.onAction(Action.OnBack) + }, + onHardwareWalletClick = { + model.onAction(Action.HardwareWallet) + }, + onRecoveryPhraseClick = { + model.onAction(Action.RecoveryPhrase) + }, + onGoogleDriveClick = { + model.onAction(Action.GoogleDriveBackup(isDialogShown = true)) + }, + onGoogleDriveFakeDoorDialogDismiss = { + model.onAction(Action.GoogleDriveBackup(isDialogShown = false)) + }, ) } diff --git a/features/hot-wallet/impl/src/main/kotlin/com/tangem/features/hotwallet/walletbackup/ui/component/GoogleDriveFakeDoorDialog.kt b/features/hot-wallet/impl/src/main/kotlin/com/tangem/features/hotwallet/walletbackup/ui/component/GoogleDriveFakeDoorDialog.kt new file mode 100644 index 0000000000..a986c53471 --- /dev/null +++ b/features/hot-wallet/impl/src/main/kotlin/com/tangem/features/hotwallet/walletbackup/ui/component/GoogleDriveFakeDoorDialog.kt @@ -0,0 +1,17 @@ +package com.tangem.features.hotwallet.walletbackup.ui.component + +import androidx.compose.runtime.Composable +import com.tangem.common.R +import com.tangem.core.ui.components.BasicDialog +import com.tangem.core.ui.components.DialogButtonUM +import com.tangem.core.ui.extensions.stringResourceSafe + +@Composable +fun GoogleDriveFakeDoorDialog(onDismiss: () -> Unit) { + BasicDialog( + title = stringResourceSafe(id = R.string.hw_backup_google_drive_dialog_title), + message = stringResourceSafe(id = R.string.hw_backup_google_drive_dialog_message), + confirmButton = DialogButtonUM(onClick = onDismiss), + onDismissDialog = onDismiss, + ) +} \ No newline at end of file