Updated on 2026-08-14

This commit is contained in:
Tangem 2025-01-09 11:45:37 +03:00
parent 477a3c11dd
commit 88a80a7d3a
49 changed files with 68 additions and 70 deletions

View file

@ -35,7 +35,7 @@ internal class MainScreenStateHolder(private val intents: MainIntents) {
stateFlowInternal.update { state ->
state.copy(
modalNotification = TangemBottomSheetConfig(
isShow = true,
isShown = true,
onDismissRequest = intents::onDismissBottomSheet,
content = notificationsFactory.createBalancesAreHiddenModalNotification(),
),
@ -45,7 +45,7 @@ internal class MainScreenStateHolder(private val intents: MainIntents) {
fun updateWithoutModalNotification() {
stateFlowInternal.update { state ->
state.copy(modalNotification = state.modalNotification?.copy(isShow = false))
state.copy(modalNotification = state.modalNotification?.copy(isShown = false))
}
}

View file

@ -125,7 +125,7 @@ internal class MainViewModel @Inject constructor(
it.isBalanceHidingNotificationEnabled && it.isBalanceHidden
}
.onEach {
if (state.value.modalNotification?.isShow != true && !it.isUpdateFromToast) {
if (state.value.modalNotification?.isShown != true && !it.isUpdateFromToast) {
listenToFlipsUseCase.changeUpdateEnabled(false)
stateHolder.updateWithHiddenBalancesNotification()
router.push(AppRoute.ModalNotification)

View file

@ -50,7 +50,7 @@ internal class ModalNotificationBottomSheetFragment : ComposeBottomSheetFragment
}
LaunchedEffect(notification) {
if (!notification.isShow) {
if (!notification.isShown) {
dismiss()
}
}