From d32f14390330edc9ab339f2cb6dbe2f846ab58ad Mon Sep 17 00:00:00 2001 From: Tangem Date: Tue, 9 Jun 2026 10:12:31 +0100 Subject: [PATCH] Updated on 2026-08-14 --- features/address-book/impl/build.gradle.kts | 3 +++ .../list/contract/AddressBookListUM.kt | 3 ++- .../list/ui/AddressBookEmptyScreen.kt | 18 ++++++++++++------ 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/features/address-book/impl/build.gradle.kts b/features/address-book/impl/build.gradle.kts index 8ecab403c4..0e9ca8c98a 100644 --- a/features/address-book/impl/build.gradle.kts +++ b/features/address-book/impl/build.gradle.kts @@ -38,4 +38,7 @@ dependencies { /** DI */ implementation(deps.hilt.android) kapt(deps.hilt.kapt) + + /** Other */ + implementation(deps.kotlin.immutable.collections) } \ No newline at end of file diff --git a/features/address-book/impl/src/main/kotlin/com/tangem/features/addressbook/list/contract/AddressBookListUM.kt b/features/address-book/impl/src/main/kotlin/com/tangem/features/addressbook/list/contract/AddressBookListUM.kt index 3b50fcb3c1..f5cf907646 100644 --- a/features/address-book/impl/src/main/kotlin/com/tangem/features/addressbook/list/contract/AddressBookListUM.kt +++ b/features/address-book/impl/src/main/kotlin/com/tangem/features/addressbook/list/contract/AddressBookListUM.kt @@ -2,10 +2,11 @@ package com.tangem.features.addressbook.list.contract import androidx.compose.runtime.Immutable import com.tangem.domain.addressbook.model.Contact +import kotlinx.collections.immutable.ImmutableList @Immutable internal sealed class AddressBookListUM { data object Empty : AddressBookListUM() - data class AddressList(val contacts: List) : AddressBookListUM() + data class AddressList(val contacts: ImmutableList) : AddressBookListUM() } \ No newline at end of file diff --git a/features/address-book/impl/src/main/kotlin/com/tangem/features/addressbook/list/ui/AddressBookEmptyScreen.kt b/features/address-book/impl/src/main/kotlin/com/tangem/features/addressbook/list/ui/AddressBookEmptyScreen.kt index 0eb8eb4765..8c258eb5eb 100644 --- a/features/address-book/impl/src/main/kotlin/com/tangem/features/addressbook/list/ui/AddressBookEmptyScreen.kt +++ b/features/address-book/impl/src/main/kotlin/com/tangem/features/addressbook/list/ui/AddressBookEmptyScreen.kt @@ -15,8 +15,9 @@ import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import com.tangem.core.ui.R import com.tangem.core.ui.components.PrimaryButtonIconEnd -import com.tangem.core.ui.components.appbar.TangemTopAppBar -import com.tangem.core.ui.components.appbar.models.TopAppBarButtonUM +import com.tangem.core.ui.ds.image.TangemIconUM +import com.tangem.core.ui.ds.topbar.TangemTopBar +import com.tangem.core.ui.ds2.button.TangemButton import com.tangem.core.ui.extensions.resourceReference import com.tangem.core.ui.extensions.stringResourceSafe import com.tangem.core.ui.res.TangemTheme @@ -31,12 +32,17 @@ internal fun AddressBookEmptyScreen( modifier = modifier, horizontalAlignment = Alignment.CenterHorizontally, ) { - TangemTopAppBar( + TangemTopBar( modifier = Modifier.statusBarsPadding(), title = resourceReference(R.string.address_book_title), - startButton = TopAppBarButtonUM.Back( - onBackClicked = onBackClick, - ), + startContent = { + TangemButton( + iconStart = TangemIconUM.Icon(iconRes = R.drawable.ic_back_24), + onClick = onBackClick, + size = TangemButton.Size.X11, + variant = TangemButton.Variant.Secondary, + ) + }, ) NoContactInfo() PrimaryButtonIconEnd(