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