Skip to content

Commit 814aae0

Browse files
committed
refactor: implement localizedRandom
1 parent d829ea4 commit 814aae0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/sheets/NewTransactionSheet.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import to.bitkit.ui.scaffold.SheetTopBar
3939
import to.bitkit.ui.shared.util.gradientBackground
4040
import to.bitkit.ui.theme.AppShapes
4141
import to.bitkit.ui.theme.AppThemeSurface
42+
import to.bitkit.ui.utils.localizedRandom
4243
import to.bitkit.viewmodels.AppViewModel
4344

4445
@Composable
@@ -172,7 +173,7 @@ private fun NewTransactionSheetView(
172173
}
173174
} else {
174175
PrimaryButton(
175-
text = stringResource(R.string.common__ok_random).split("\n").random(),
176+
text = localizedRandom(R.string.common__ok_random),
176177
onClick = onCloseClick,
177178
)
178179
}

0 commit comments

Comments
 (0)