diff --git a/app/src/main/java/com/babylon/wallet/android/presentation/transaction/composables/TransactionPreviewHeader.kt b/app/src/main/java/com/babylon/wallet/android/presentation/transaction/composables/TransactionPreviewHeader.kt index 3339153f54..ef1a408cfc 100644 --- a/app/src/main/java/com/babylon/wallet/android/presentation/transaction/composables/TransactionPreviewHeader.kt +++ b/app/src/main/java/com/babylon/wallet/android/presentation/transaction/composables/TransactionPreviewHeader.kt @@ -50,10 +50,7 @@ fun TransactionPreviewHeader( scrollState: ScrollState ) { val context = LocalContext.current - val title = when (state.previewType) { - is PreviewType.Transfer -> stringResource(R.string.transactionReview_transferTitle) - else -> stringResource(R.string.transactionReview_title) - } + // TODO improve this at later time. // AnimationRangePx is the threshold which scrollState.value hits and then transition of the motion layout starts. // When its relatively low i.e. 40.dp we start transition early and if content is large enough scroll state continue @@ -99,7 +96,7 @@ fun TransactionPreviewHeader( CompositionLocalProvider(LocalDensity provides Density(LocalDensity.current.density, 1f)) { Text( modifier = Modifier.layoutId("title"), - text = title, + text = stringResource(R.string.transactionReview_title), color = RadixTheme.colors.gray1, textAlign = TextAlign.Start, maxLines = 2,