Skip to content

Commit

Permalink
PM-14200: Add count to sends type header (#4323)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-livefront authored Nov 18, 2024
1 parent 506d0f1 commit 429c76c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import com.x8bit.bitwarden.ui.platform.components.util.rememberVectorPainter
import com.x8bit.bitwarden.ui.tools.feature.send.handlers.SendHandlers
import kotlinx.collections.immutable.toImmutableList

private const val SEND_TYPES_COUNT: Int = 2

/**
* Content view for the [SendScreen].
*/
Expand Down Expand Up @@ -48,6 +50,7 @@ fun SendContent(
item {
BitwardenListHeaderText(
label = stringResource(id = R.string.types),
supportingLabel = SEND_TYPES_COUNT.toString(),
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ import com.x8bit.bitwarden.ui.vault.feature.vault.handlers.VaultHandlers
import kotlinx.collections.immutable.toImmutableList
import kotlinx.collections.immutable.toPersistentList

private const val TOTP_TYPES_COUNT: Int = 1
private const val TRASH_TYPES_COUNT: Int = 1

/**
* Content view for the [VaultScreen].
*/
Expand All @@ -41,7 +44,7 @@ fun VaultContent(
item {
BitwardenListHeaderText(
label = stringResource(id = R.string.totp),
supportingLabel = "1",
supportingLabel = TOTP_TYPES_COUNT.toString(),
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp),
Expand Down Expand Up @@ -341,7 +344,7 @@ fun VaultContent(
item {
BitwardenListHeaderText(
label = stringResource(id = R.string.trash),
supportingLabel = "1",
supportingLabel = TRASH_TYPES_COUNT.toString(),
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp),
Expand Down

0 comments on commit 429c76c

Please sign in to comment.