Updated on 2026-08-14
This commit is contained in:
parent
477a3c11dd
commit
88a80a7d3a
49 changed files with 68 additions and 70 deletions
|
|
@ -170,7 +170,7 @@ private fun Preview_ChooseFeeBottomSheet() {
|
|||
TangemThemePreview {
|
||||
ChooseFeeBottomSheet(
|
||||
config = TangemBottomSheetConfig(
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
onDismissRequest = {},
|
||||
content = content,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ private fun Preview_ChooseProviderBottomSheet() {
|
|||
TangemThemePreview {
|
||||
ChooseProviderBottomSheet(
|
||||
TangemBottomSheetConfig(
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
onDismissRequest = {},
|
||||
content = content,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import com.tangem.core.ui.components.currency.icon.converter.CryptoCurrencyToIco
|
|||
import com.tangem.core.ui.event.consumedEvent
|
||||
import com.tangem.core.ui.event.triggeredEvent
|
||||
import com.tangem.core.ui.extensions.*
|
||||
import com.tangem.core.ui.format.bigdecimal.*
|
||||
import com.tangem.core.ui.format.bigdecimal.anyDecimals
|
||||
import com.tangem.core.ui.format.bigdecimal.crypto
|
||||
import com.tangem.core.ui.format.bigdecimal.format
|
||||
|
|
@ -946,7 +945,7 @@ internal class StateBuilder(
|
|||
)
|
||||
return uiState.copy(
|
||||
bottomSheetConfig = TangemBottomSheetConfig(
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
onDismissRequest = onDismiss,
|
||||
content = config,
|
||||
),
|
||||
|
|
@ -957,7 +956,7 @@ internal class StateBuilder(
|
|||
|
||||
fun dismissBottomSheet(uiState: SwapStateHolder): SwapStateHolder {
|
||||
return uiState.copy(
|
||||
bottomSheetConfig = uiState.bottomSheetConfig?.copy(isShow = false),
|
||||
bottomSheetConfig = uiState.bottomSheetConfig?.copy(isShown = false),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -981,7 +980,7 @@ internal class StateBuilder(
|
|||
)
|
||||
return uiState.copy(
|
||||
bottomSheetConfig = TangemBottomSheetConfig(
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
onDismissRequest = onDismiss,
|
||||
content = config,
|
||||
),
|
||||
|
|
@ -1044,7 +1043,7 @@ internal class StateBuilder(
|
|||
)
|
||||
return uiState.copy(
|
||||
bottomSheetConfig = TangemBottomSheetConfig(
|
||||
isShow = true,
|
||||
isShown = true,
|
||||
onDismissRequest = onDismiss,
|
||||
content = config,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -1024,7 +1024,7 @@ internal class SwapViewModel @Inject constructor(
|
|||
},
|
||||
onBackClicked = {
|
||||
val bottomSheet = uiState.bottomSheetConfig
|
||||
if (bottomSheet != null && bottomSheet.isShow) {
|
||||
if (bottomSheet != null && bottomSheet.isShown) {
|
||||
uiState = stateBuilder.dismissBottomSheet(uiState)
|
||||
} else {
|
||||
if (swapRouter.currentScreen == SwapNavScreen.SelectToken) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue