Updated on 2026-08-14
This commit is contained in:
parent
477a3c11dd
commit
88a80a7d3a
49 changed files with 68 additions and 70 deletions
|
|
@ -17,7 +17,7 @@ internal class ShowActionSelectorBottomSheetTransformer(
|
|||
override fun transform(prevState: StakingUiState): StakingUiState {
|
||||
return prevState.copy(
|
||||
bottomSheetConfig = TangemBottomSheetConfig(
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
content = StakingActionSelectionBottomSheetConfig(
|
||||
title = resourceReference(R.string.common_choose_action),
|
||||
actions = pendingActions,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ internal class ShowInfoBottomSheetStateTransformer(
|
|||
return prevState.copy(
|
||||
bottomSheetConfig = TangemBottomSheetConfig(
|
||||
onDismissRequest = onDismiss,
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
content = when (infoType) {
|
||||
InfoType.ANNUAL_PERCENTAGE_RATE -> StakingInfoBottomSheetConfig(
|
||||
title = resourceReference(R.string.staking_details_annual_percentage_rate),
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ internal class SetApprovalBottomSheetInProgressTransformer(
|
|||
return prevState.copy(
|
||||
bottomSheetConfig = prevState.bottomSheetConfig?.copy(
|
||||
onDismissRequest = onDismiss,
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
content = approvalBottomSheetConfig?.let { config ->
|
||||
config.copy(
|
||||
data = config.data.copy(
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ internal class ShowApprovalBottomSheetTransformer(
|
|||
)
|
||||
return prevState.copy(
|
||||
bottomSheetConfig = TangemBottomSheetConfig(
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
onDismissRequest = onDismiss,
|
||||
content = GiveTxPermissionBottomSheetConfig(
|
||||
data = GiveTxPermissionState.ReadyForRequest(
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ private fun Preview_StakingActionSelectorBottomSheet() {
|
|||
TangemThemePreview {
|
||||
StakingActionSelectorBottomSheet(
|
||||
config = TangemBottomSheetConfig(
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
onDismissRequest = {},
|
||||
content = StakingActionSelectionBottomSheetConfig(
|
||||
title = resourceReference(R.string.common_select_action),
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ private fun Preview_StakingInfoBottomSheet() {
|
|||
TangemThemePreview {
|
||||
StakingInfoBottomSheet(
|
||||
config = TangemBottomSheetConfig(
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
onDismissRequest = {},
|
||||
content = StakingInfoBottomSheetConfig(
|
||||
title = stringReference("Title"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue