Updated on 2026-08-14
This commit is contained in:
parent
097b9ec463
commit
82e3fc2451
17 changed files with 64 additions and 88 deletions
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" ?>
|
||||
<SmellBaseline>
|
||||
<ManuallySuppressedIssues/>
|
||||
<CurrentIssues>
|
||||
<ID>BooleanPropertyNaming:CreateWalletSelectionUM.kt$CreateWalletSelectionUM$val showAlreadyHaveWallet: Boolean = false</ID>
|
||||
<ID>MultilineLambdaItParameter:CreateWalletSelectionContent.kt${ Feature( feature = it, modifier = Modifier .padding(top = 12.dp), ) }</ID>
|
||||
</CurrentIssues>
|
||||
</SmellBaseline>
|
||||
|
|
@ -75,7 +75,7 @@ internal class CreateWalletSelectionModel @Inject constructor(
|
|||
),
|
||||
),
|
||||
onBuyClick = ::onBuyClick,
|
||||
showAlreadyHaveWallet = true,
|
||||
shouldShowAlreadyHaveWallet = true,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ internal class CreateWalletSelectionModel @Inject constructor(
|
|||
private fun showAlreadyHaveWalletWithDelay() {
|
||||
modelScope.launch {
|
||||
delay(SHOW_ALREADY_HAVE_WALLET_DELAY)
|
||||
uiState.update { it.copy(showAlreadyHaveWallet = true) }
|
||||
uiState.update { it.copy(shouldShowAlreadyHaveWallet = true) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import kotlinx.collections.immutable.ImmutableList
|
|||
|
||||
internal data class CreateWalletSelectionUM(
|
||||
val isScanInProgress: Boolean = false,
|
||||
val showAlreadyHaveWallet: Boolean = false,
|
||||
val shouldShowAlreadyHaveWallet: Boolean = false,
|
||||
val blocks: ImmutableList<Block>,
|
||||
val onBackClick: () -> Unit,
|
||||
val onBuyClick: () -> Unit,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import androidx.compose.foundation.background
|
|||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.material3.*
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
|
|
@ -104,7 +104,7 @@ internal fun CreateWalletSelectionContent(state: CreateWalletSelectionUM, modifi
|
|||
)
|
||||
}
|
||||
}
|
||||
AnimatedVisibility(state.showAlreadyHaveWallet) {
|
||||
AnimatedVisibility(state.shouldShowAlreadyHaveWallet) {
|
||||
AlreadyHaveTangemWalletBlock(
|
||||
onBuyClick = state.onBuyClick,
|
||||
isScanInProgress = state.isScanInProgress,
|
||||
|
|
@ -161,9 +161,9 @@ private fun WalletBlock(
|
|||
thickness = 0.5.dp,
|
||||
color = TangemTheme.colors.stroke.primary,
|
||||
)
|
||||
features.forEach {
|
||||
features.forEach { feature ->
|
||||
Feature(
|
||||
feature = it,
|
||||
feature = feature,
|
||||
modifier = Modifier
|
||||
.padding(top = 12.dp),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue