From 6cc3fa6f8524deca8be5aae2a6ea1e9c73206002 Mon Sep 17 00:00:00 2001 From: Rafael Muhamedzyanov Date: Tue, 31 Oct 2023 16:01:15 +0600 Subject: [PATCH] Show donate addresses when user not having wallets --- .../modules/tokenselect/TokenSelectScreen.kt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/modules/tokenselect/TokenSelectScreen.kt b/app/src/main/java/io/horizontalsystems/bankwallet/modules/tokenselect/TokenSelectScreen.kt index a2d0d279105..62840c01788 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/modules/tokenselect/TokenSelectScreen.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/modules/tokenselect/TokenSelectScreen.kt @@ -3,6 +3,8 @@ package io.horizontalsystems.bankwallet.modules.tokenselect import androidx.compose.animation.ExperimentalAnimationApi import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed import androidx.compose.material.Scaffold @@ -46,10 +48,15 @@ fun TokenSelectScreen( ) { paddingValues -> val uiState = viewModel.uiState if (uiState.noItems) { - ListEmptyView( - text = emptyItemsText, - icon = R.drawable.ic_empty_wallet - ) + Column( + modifier = Modifier.fillMaxSize() + ) { + header?.invoke() + ListEmptyView( + text = emptyItemsText, + icon = R.drawable.ic_empty_wallet + ) + } } else { LazyColumn(contentPadding = paddingValues) { item {