From eae4d669176e87d1bd9244f1c1be1d5be7d426ce Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 30 Oct 2020 08:36:52 +0100 Subject: [PATCH] Remove duped import --- examples/textinputs/main.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/examples/textinputs/main.go b/examples/textinputs/main.go index f6aa9ba..76f44bf 100644 --- a/examples/textinputs/main.go +++ b/examples/textinputs/main.go @@ -8,7 +8,6 @@ import ( "os" "github.com/charmbracelet/bubbles/textinput" - input "github.com/charmbracelet/bubbles/textinput" tea "github.com/charmbracelet/bubbletea" te "github.com/muesli/termenv" ) @@ -32,26 +31,26 @@ func main() { type model struct { index int - nameInput input.Model - emailInput input.Model - passwordInput input.Model + nameInput textinput.Model + emailInput textinput.Model + passwordInput textinput.Model submitButton string } func initialModel() model { - name := input.NewModel() + name := textinput.NewModel() name.Placeholder = "Nickname" name.Focus() name.Prompt = focusedPrompt name.TextColor = focusedTextColor name.CharLimit = 32 - email := input.NewModel() + email := textinput.NewModel() email.Placeholder = "Email" email.Prompt = blurredPrompt email.CharLimit = 64 - password := input.NewModel() + password := textinput.NewModel() password.Placeholder = "Password" password.Prompt = blurredPrompt password.EchoMode = textinput.EchoPassword @@ -78,7 +77,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { // Cycle between inputs case "tab", "shift+tab", "enter", "up", "down": - inputs := []input.Model{ + inputs := []textinput.Model{ m.nameInput, m.emailInput, m.passwordInput,