PM-14200: Add count to sends type header (#4323)

This commit is contained in:
David Perez 2024-11-18 15:35:38 -06:00 committed by GitHub
parent 506d0f13c7
commit 429c76ce03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -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].
*/
@ -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),

View file

@ -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].
*/
@ -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),
@ -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),