mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 03:57:09 +00:00
feat(folio): tag the home total and the card transaction count
the total was the only untagged node on the screen, so the spec had to sum cards and a clipped card broke the sum.
This commit is contained in:
1 parent
a6474dc911
commit
6f0ee85eec
1 file changed
+12
-2
+12
-2
@@ -72,7 +72,12 @@ fun HomeScreen(state: HomeUiState, onEvent: (HomeEvent) -> Unit) {
|
|||||||
Row(verticalAlignment = Alignment.Bottom) {
|
Row(verticalAlignment = Alignment.Bottom) {
|
||||||
Column {
|
Column {
|
||||||
Text("TOTAL BALANCE", style = Type.label, color = t.textMuted)
|
Text("TOTAL BALANCE", style = Type.label, color = t.textMuted)
|
||||||
Text(formatCents(total), style = Type.balance, color = t.text)
|
Text(
|
||||||
|
formatCents(total),
|
||||||
|
style = Type.balance,
|
||||||
|
color = t.text,
|
||||||
|
modifier = Modifier.testTag("TotalBalance"),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
Box(Modifier.weight(1f))
|
Box(Modifier.weight(1f))
|
||||||
Text(
|
Text(
|
||||||
@@ -153,7 +158,12 @@ private fun AccountCard(
|
|||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
modifier = Modifier.testTag("AccountName"),
|
modifier = Modifier.testTag("AccountName"),
|
||||||
)
|
)
|
||||||
Text(txnLabel, style = Type.caption, color = t.textMuted)
|
Text(
|
||||||
|
txnLabel,
|
||||||
|
style = Type.caption,
|
||||||
|
color = t.textMuted,
|
||||||
|
modifier = Modifier.testTag("AccountTxnCount"),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
Text(
|
Text(
|
||||||
formatCents(balance),
|
formatCents(balance),
|
||||||
|
|||||||
Reference in new issue
Block a user