chore: calculate total balance for space
This commit is contained in:
parent
b48fcbfaa6
commit
694b774986
6 changed files with 35 additions and 23 deletions
|
|
@ -4,14 +4,12 @@ import "github.com/shopspring/decimal"
|
|||
import "strings"
|
||||
import "git.juancwu.dev/juancwu/budgit/internal/ui/components/icon"
|
||||
import "fmt"
|
||||
import "git.juancwu.dev/juancwu/budgit/internal/misc/currency"
|
||||
|
||||
type SpaceCardInfo struct {
|
||||
ID string
|
||||
Name string
|
||||
MemberCount int
|
||||
TotalBalance decimal.Decimal
|
||||
Currency currency.Currency
|
||||
}
|
||||
|
||||
templ SpaceCard(info SpaceCardInfo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue