Use model-based Tick commands in spinner examples

This commit is contained in:
Christian Rocha
2022-01-10 14:20:15 -05:00
parent ee92bed288
commit 843b6a5249
2 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ func initialModel() model {
}
func (m model) Init() tea.Cmd {
return spinner.Tick
return m.spinner.Tick
}
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {