Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Dec 25, 2023
1 parent 6699271 commit 182d30f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui/page/send/manual_coin_selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type ManualCoinSelectionPage struct {
*app.GenericPageModal
// modalLayout is initialized if this page will be displayed as a modal
// rather than a full page. A modal display is used and a wallet selector is
// displayed if this send page is opened from the home page.
// displayed if this coin selection page is opened from the send page modal.
modalLayout *cryptomaterial.Modal

ctx context.Context // page context
Expand Down Expand Up @@ -91,7 +91,6 @@ type ManualCoinSelectionPage struct {
strAssetType string

sendPage *Page
backdrop *widget.Clickable
}

type componentProperties struct {
Expand Down Expand Up @@ -123,11 +122,10 @@ func NewManualCoinSelectionPage(l *load.Load, sendPage *Page) *ManualCoinSelecti
UTXOList: l.Theme.NewClickableList(layout.Vertical),
addressCopy: make([]*cryptomaterial.Clickable, 0),
sendPage: sendPage,
backdrop: new(widget.Clickable),
}

if sendPage.modalLayout != nil {
pg.modalLayout = l.Theme.ModalFloatTitle(values.String(values.StrSend))
pg.modalLayout = l.Theme.ModalFloatTitle(values.String(values.StrCoinSelection))
pg.GenericPageModal = pg.modalLayout.GenericPageModal
} else {
pg.GenericPageModal = app.NewGenericPageModal(ManualCoinSelectionPageID)
Expand Down

0 comments on commit 182d30f

Please sign in to comment.