Skip to content

Commit

Permalink
ABW-2820 - Review your transaction title changed. (#772)
Browse files Browse the repository at this point in the history
* ABW-2820 - Review your transaction title changed.

* ABW-2820 - Title passed directly.
  • Loading branch information
raf-rdx authored Jan 30, 2024
1 parent 6db5c37 commit a305f26
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a305f26

Please sign in to comment.