Updated on 2026-08-14
This commit is contained in:
commit
2d37fbccaf
3 changed files with 4 additions and 5 deletions
|
|
@ -116,7 +116,7 @@ internal class OnrampAmountStateFactory(
|
|||
),
|
||||
)
|
||||
|
||||
val bestProvider = selectedQuote as? OnrampQuote.Data
|
||||
val bestProvider = quotes.firstOrNull()
|
||||
val isMultipleQuotes = !quotes.isSingleItem()
|
||||
val isOtherQuotesHasData = quotes
|
||||
.filter { it.paymentMethod == selectedQuote.paymentMethod }
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import androidx.compose.ui.draw.clip
|
|||
import androidx.compose.ui.platform.LocalContext
|
||||
import coil.compose.SubcomposeAsyncImage
|
||||
import coil.request.ImageRequest
|
||||
import com.tangem.core.ui.res.TangemColorPalette
|
||||
import com.tangem.core.ui.res.TangemTheme
|
||||
|
||||
@Composable
|
||||
|
|
@ -18,7 +17,7 @@ internal fun PaymentMethodIcon(imageUrl: String, modifier: Modifier = Modifier)
|
|||
modifier = modifier
|
||||
.size(TangemTheme.dimens.size40)
|
||||
.clip(TangemTheme.shapes.roundedCorners8)
|
||||
.background(TangemColorPalette.Light1) // Ignore themed color.
|
||||
.background(TangemTheme.colors.background.secondary)
|
||||
.padding(TangemTheme.dimens.spacing6),
|
||||
model = ImageRequest.Builder(context = LocalContext.current)
|
||||
.data(imageUrl)
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ import androidx.compose.runtime.remember
|
|||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import com.tangem.core.ui.components.bottomsheets.sheet.TangemBottomSheet
|
||||
import com.tangem.core.ui.components.bottomsheets.TangemBottomSheetConfig
|
||||
import com.tangem.core.ui.components.bottomsheets.sheet.TangemBottomSheet
|
||||
import com.tangem.core.ui.extensions.resourceReference
|
||||
import com.tangem.core.ui.res.TangemTheme
|
||||
import com.tangem.features.onramp.impl.R
|
||||
|
|
@ -26,7 +26,7 @@ internal fun SelectPaymentMethodBottomSheet(config: TangemBottomSheetConfig) {
|
|||
TangemBottomSheet<PaymentMethodsBottomSheetConfig>(
|
||||
config = config,
|
||||
addBottomInsets = true,
|
||||
containerColor = TangemTheme.colors.background.tertiary,
|
||||
containerColor = TangemTheme.colors.background.primary,
|
||||
titleText = resourceReference(R.string.onramp_pay_with),
|
||||
content = { contentConfig ->
|
||||
SelectPaymentMethodBottomSheetContent(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue