Skip to content

Commit

Permalink
feat: Use TextDotText in TransferDetailsScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Oct 31, 2024
1 parent 979f98c commit 0885456
Showing 1 changed file with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,21 +187,10 @@ private fun TransferInfos(transfer: TransferUi) {
tint = SwissTransferTheme.materialColors.primary,
contentDescription = null,
)
Text(
modifier = Modifier.padding(start = Margin.Mini),
text = pluralStringResource(R.plurals.filesCount, filesCount, filesCount),
style = SwissTransferTheme.typography.bodySmallRegular,
color = SwissTransferTheme.colors.primaryTextColor,
)
Text(
text = "",
style = SwissTransferTheme.typography.bodySmallRegular,
color = SwissTransferTheme.colors.primaryTextColor,
modifier = Modifier.padding(horizontal = Margin.Mini),
)
Text(
text = Formatter.formatShortFileSize(LocalContext.current, transfer.sizeUploaded),
style = SwissTransferTheme.typography.bodySmallRegular,
Spacer(Modifier.width(Margin.Mini))
TextDotText(
firstText = { pluralStringResource(R.plurals.filesCount, filesCount, filesCount) },
secondText = { Formatter.formatShortFileSize(LocalContext.current, transfer.sizeUploaded) },
color = SwissTransferTheme.colors.primaryTextColor,
)
}
Expand Down

0 comments on commit 0885456

Please sign in to comment.