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
@@ -39,7 +39,7 @@ func NewLogin() State {
var t textinput.Model
for i := range ls.Inputs {
t = textinput.NewModel()
t = textinput.New()
t.CursorStyle = ui.CursorStyle
t.Prompt = "| "