Migrate from NewModel() to New() in examples for Bubbles-related stuff

This commit is contained in:
Christian Rocha
2022-01-10 20:42:10 -05:00
parent 843b6a5249
commit 66cea095eb
15 changed files with 15 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ func newModel() model {
items = append(items, text)
}
p := paginator.NewModel()
p := paginator.New()
p.Type = paginator.Dots
p.PerPage = 10
p.ActiveDot = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "235", Dark: "252"}).Render("•")