Skip to content

Commit

Permalink
Change texts in Transactions filter
Browse files Browse the repository at this point in the history
  • Loading branch information
omurovch committed Dec 11, 2023
1 parent 7aeb50a commit 43e22ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.livedata.observeAsState
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
Expand Down Expand Up @@ -105,8 +106,9 @@ fun FilterScreen(
CellSingleLineLawrenceSection(
listOf {
FilterDropdownCell(
title = stringResource(R.string.Market_Filter_Blockchains),
value = filterBlockchain?.name,
title = stringResource(R.string.Transactions_Filter_Blockchain),
value = filterBlockchain?.name ?: stringResource(id = R.string.Transactions_Filter_AllBlockchains) ,
valueColor = if (filterBlockchain != null) ComposeAppTheme.colors.leah else ComposeAppTheme.colors.grey,
onClick = {
navController.slideFromRight(R.id.filterBlockchainFragment)
}
Expand All @@ -117,8 +119,9 @@ fun FilterScreen(
CellSingleLineLawrenceSection(
listOf {
FilterDropdownCell(
title = stringResource(R.string.Transactions_Coins),
value = selectedCoinFilterTitle,
title = stringResource(R.string.Transactions_Filter_Coin),
value = selectedCoinFilterTitle ?: stringResource(id = R.string.Transactions_Filter_AllCoins) ,
valueColor = if (filterBlockchain != null) ComposeAppTheme.colors.leah else ComposeAppTheme.colors.grey,
onClick = {
navController.slideFromRight(R.id.filterCoinFragment)
}
Expand Down Expand Up @@ -161,7 +164,8 @@ fun FilterScreen(
@Composable
private fun FilterDropdownCell(
title: String,
value: String?,
value: String,
valueColor: Color,
onClick: () -> Unit
) {
Row(
Expand All @@ -187,7 +191,7 @@ private fun FilterDropdownCell(
text = value ?: stringResource(R.string.Any),
maxLines = 1,
style = ComposeAppTheme.typography.body,
color = if (value != null) ComposeAppTheme.colors.leah else ComposeAppTheme.colors.grey,
color = valueColor
)
Icon(
modifier = Modifier.padding(start = 4.dp),
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,8 @@
<string name="Transactions_From">from %s</string>
<string name="Transaction_Unlimited">unlimited %s</string>
<string name="Transactions_All">All</string>
<string name="Transactions_Filter_Blockchain">Filter by blockchain</string>
<string name="Transactions_Filter_Blockchain">Blockchain</string>
<string name="Transactions_Filter_Coin">Coin</string>
<string name="Transactions_Filter_AllBlockchains">All Blockchains</string>
<string name="Transactions_Filter_AllCoins">All Coins</string>
<string name="Transactions_Filter_ChooseCoin">Choose Coin</string>
Expand All @@ -723,8 +724,7 @@
<string name="Transactions_Unknown_Description">Transaction can not be parsed</string>
<string name="Transactions_Multiple">Multiple</string>
<string name="Transactions_Filter">Filter</string>
<string name="Transactions_Coins">Coins</string>
<string name="Transactions_Filter_HideSuspiciousTx">Hide Suspicious Txs</string>
<string name="Transactions_Filter_HideSuspiciousTx">Hide suspicious tx</string>
<string name="Transactions_Filter_StablecoinDustAmount_Description">Hiding incoming transactions with the dust amount in stablecoins, this partially solves the address poisoning attack problems.</string>

<!--Transaction Info-->
Expand Down

0 comments on commit 43e22ce

Please sign in to comment.