Removed unnecessary elements
This commit is contained in:
parent
8bfd50e0c0
commit
23bd5833ea
|
@ -19,12 +19,9 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
|
|||
Row(
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
.background(color = backgroundColor)
|
||||
.padding(horizontal = 6.dp, vertical = 4.dp),
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
.padding(horizontal = 6.dp, vertical = 4.dp)
|
||||
) {
|
||||
Column(
|
||||
modifier = Modifier.weight(1f)
|
||||
) {
|
||||
Column(Modifier.weight(1f)) {
|
||||
Text(
|
||||
text = transaction.otherPartyName ?: "",
|
||||
Modifier.fillMaxWidth(),
|
||||
|
@ -42,15 +39,15 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
|
|||
)
|
||||
}
|
||||
|
||||
Spacer(modifier = Modifier.width(8.dp))
|
||||
Spacer(Modifier.width(8.dp))
|
||||
|
||||
Column(Modifier.width(90.dp), horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.Center) {
|
||||
Text(
|
||||
text = formatUtil.formatAmount(transaction.amount, transaction.currency),
|
||||
color = formatUtil.getColorForAmount(transaction.amount),
|
||||
color = formatUtil.getColorForAmount(transaction.amount)
|
||||
)
|
||||
|
||||
Spacer(modifier = Modifier.height(8.dp))
|
||||
Spacer(Modifier.height(8.dp))
|
||||
|
||||
Text(
|
||||
text = formatUtil.formatDate(transaction.valueDate)
|
||||
|
|
Loading…
Reference in New Issue