Skip to content

Commit

Permalink
multi: Fix CEX page
Browse files Browse the repository at this point in the history
- Fix asset selector dropdown
- Fix asset amount input
- Fix order schedular modal and balance to maintain field
- Fix order settings modal
- Handle error from failed order schedules

Signed-off-by: Philemon Ukane <[email protected]>
  • Loading branch information
ukane-philemon committed Oct 22, 2024
1 parent c33f55e commit 660ce5f
Show file tree
Hide file tree
Showing 8 changed files with 185 additions and 142 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ require (
github.com/decred/slog v1.2.0
github.com/decred/vspd/client/v3 v3.0.0
github.com/decred/vspd/types/v2 v2.1.0
github.com/decred/vspd/types/v3 v3.0.0
github.com/dgraph-io/badger v1.6.2
github.com/gen2brain/beeep v0.0.0-20220402123239-6a3042f4b71a
github.com/gomarkdown/markdown v0.0.0-20230922105210-14b16010c2ee
Expand Down Expand Up @@ -126,7 +127,6 @@ require (
github.com/decred/dcrtime v0.0.0-20191018193024-8d8b4ef0458e // indirect
github.com/decred/go-socks v1.1.0 // indirect
github.com/decred/vspd/client/v4 v4.0.0 // indirect
github.com/decred/vspd/types/v3 v3.0.0 // indirect
github.com/dgraph-io/ristretto v0.0.2 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
Expand Down
1 change: 0 additions & 1 deletion libwallet/assets/ltc/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ func (asset *Asset) NeutrinoClient() *ChainService {
func (asset *Asset) IsSynced() bool {
asset.syncData.mu.RLock()
defer asset.syncData.mu.RUnlock()

return asset.syncData.synced
}

Expand Down
4 changes: 4 additions & 0 deletions ui/page/components/account_dropdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ func (d *AccountDropdown) Handle(gtx C) {
func (d *AccountDropdown) Layout(gtx C, title string) D {
return layout.Flex{Axis: layout.Vertical}.Layout(gtx,
layout.Rigid(func(gtx C) D {
if title == "" {
return D{}
}

lbl := d.Theme.H6(title)
lbl.TextSize = values.TextSizeTransform(d.IsMobileView(), values.TextSize16)
lbl.Font.Weight = font.SemiBold
Expand Down
Loading

0 comments on commit 660ce5f

Please sign in to comment.