Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Dec 22, 2023
1 parent 15b65ae commit 52f03fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions ui/page/seedbackup/save_seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ func (pg *SaveSeedPage) desktopSeedRow(gtx C, row saveSeedRow) D {
if pg.IsMobileView() {
itemWidth := gtx.Constraints.Max.X / 2 // Divide total width into 2 rows for mobile
flexChils = []layout.FlexChild{
seedItem(pg.Theme, gtx, itemWidth, row.rowIndex, row.word1),
seedItem(pg.Theme, gtx, itemWidth, row.rowIndex+17, row.word2),
seedItem(pg.Theme, itemWidth, row.rowIndex, row.word1),
seedItem(pg.Theme, itemWidth, row.rowIndex+17, row.word2),
}
} else {
itemWidth := gtx.Constraints.Max.X / 3 // Divide total width into 3 rows for deskop
flexChils = []layout.FlexChild{
seedItem(pg.Theme, gtx, itemWidth, row.rowIndex, row.word1),
seedItem(pg.Theme, gtx, itemWidth, row.rowIndex+11, row.word2),
seedItem(pg.Theme, gtx, itemWidth, row.rowIndex+22, row.word3),
seedItem(pg.Theme, itemWidth, row.rowIndex, row.word1),
seedItem(pg.Theme, itemWidth, row.rowIndex+11, row.word2),
seedItem(pg.Theme, itemWidth, row.rowIndex+22, row.word3),
}
}
return cryptomaterial.LinearLayout{
Expand Down Expand Up @@ -339,7 +339,7 @@ func (pg *SaveSeedPage) handleCopyEvent(gtx C) {
}
}

func seedItem(theme *cryptomaterial.Theme, gtx C, width, index int, word string) layout.FlexChild {
func seedItem(theme *cryptomaterial.Theme, width, index int, word string) layout.FlexChild {
return layout.Rigid(func(gtx C) D {
if word == "" {
return D{}
Expand Down
2 changes: 1 addition & 1 deletion ui/page/seedbackup/verify_seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (pg *VerifySeedPage) seedListRow(gtx C, index int, multiSeed shuffledSeedWo
if multiSeed.selectedIndex != -1 {
text = multiSeed.words[multiSeed.selectedIndex]
}
seedItem := seedItem(pg.Theme, gtx, gtx.Constraints.Max.X, index+1, text)
seedItem := seedItem(pg.Theme, gtx.Constraints.Max.X, index+1, text)
return cryptomaterial.LinearLayout{
Width: cryptomaterial.MatchParent,
Height: cryptomaterial.WrapContent,
Expand Down

0 comments on commit 52f03fc

Please sign in to comment.