Skip to content

Commit 06899f4

Browse files
committed
chore(token/tx): update processing screen copy
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 13a67e1 commit 06899f4

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/flipcash/core/src/main/res/values/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@
407407
<string name="label_fromCurrencyAppreciation">from currency appreciation</string>
408408
<string name="label_fromCurrencyDepreciation">from currency depreciation</string>
409409

410-
<string name="title_processingYourTransaction">Processing Your Transaction</string>
411-
<string name="subtitle_processingYourTransaction">This usually takes about a minute</string>
410+
<string name="title_processingYourTransaction">This Will Take a Minute</string>
411+
<string name="subtitle_processingYourTransaction">This transaction typically takes about a minute. You may leave the app while it completes</string>
412412
<string name="subtitle_wasAddedToYourWallet">was added to your Flipcash wallet</string>
413413
<string name="label_ofToken">of %1s</string>
414414

apps/flipcash/features/tokens/src/main/kotlin/com/flipcash/app/tokens/internal/TokenTxProcessingScreen.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import androidx.compose.ui.graphics.StrokeCap
2424
import androidx.compose.ui.res.painterResource
2525
import androidx.compose.ui.res.stringResource
2626
import androidx.compose.ui.text.AnnotatedString
27+
import androidx.compose.ui.text.style.TextAlign
2728
import androidx.compose.ui.tooling.preview.Preview
2829
import androidx.lifecycle.compose.collectAsStateWithLifecycle
2930
import com.flipcash.app.core.tokens.TokenSwapPurpose
@@ -172,6 +173,8 @@ private fun TokenTxProcessingScreen(
172173
color = CodeTheme.colors.textMain,
173174
)
174175
Text(
176+
modifier = Modifier.fillMaxWidth()
177+
.padding(horizontal = CodeTheme.dimens.grid.x12),
175178
text = when (state.processingProgress.state) {
176179
LoadingSuccessState.State.Error -> stringResource(R.string.error_description_buySellFailed)
177180
LoadingSuccessState.State.Idle -> ""
@@ -180,6 +183,7 @@ private fun TokenTxProcessingScreen(
180183
},
181184
style = CodeTheme.typography.textSmall,
182185
color = CodeTheme.colors.textSecondary,
186+
textAlign = TextAlign.Center
183187
)
184188
}
185189
}

0 commit comments

Comments
 (0)