Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-04 13:37:43 +01:00
parent 5e8c334e3d
commit 9617f52ec9
2 changed files with 33 additions and 0 deletions

View file

@ -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))
},
)
}

View file

@ -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,
)
}