Updated on 2026-08-14
This commit is contained in:
parent
5e8c334e3d
commit
9617f52ec9
2 changed files with 33 additions and 0 deletions
|
|
@ -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))
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue