fix: use .New() instead of the deprecated .NewModel() to init models

This commit is contained in:
2022-01-15 22:50:38 +02:00
parent e44f31f30a
commit f097431b8f
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ type InputState struct {
}
func NewInputBox() InputState {
input := textinput.NewModel()
input := textinput.New()
input.Placeholder = "Send a message..."
input.Focus()