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

@@ -80,7 +80,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
func (m *model) resetSpinner() {
m.spinner = spinner.NewModel()
m.spinner = spinner.New()
m.spinner.Style = spinnerStyle
m.spinner.Spinner = spinners[m.index]
}