mirror of
https://github.com/bitwarden/android.git
synced 2024-11-21 17:05:44 +03:00
PM-14200: Add count to sends type header (#4323)
This commit is contained in:
parent
506d0f13c7
commit
429c76ce03
2 changed files with 8 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue