Skip to content
Myr

Remove duped import

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Muehlhaeuser · committed by Christian Muehlhaeuser · parent 1e02835 · Browse files · 1 file+7 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−8 removed

  • other:+7 added−8 removed

1 file+7 added−8 removed

modified:examples/textinputs/main.go+7 added-8 removed
6 unmodified lines
7 "fmt"8 "os"910 "github.com/charmbracelet/bubbles/textinput"11 input "github.com/charmbracelet/bubbles/textinput"11 tea "github.com/charmbracelet/bubbletea"12 te "github.com/muesli/termenv"13)14
15 unmodified lines
30}3132type model struct {33 index int35 nameInput input.Model36 emailInput input.Model37 passwordInput input.Model34 nameInput textinput.Model35 emailInput textinput.Model36 passwordInput textinput.Model37 submitButton string38}3940func initialModel() model {42 name := input.NewModel()41 name := textinput.NewModel()42 name.Placeholder = "Nickname"43 name.Focus()44 name.Prompt = focusedPrompt45 name.TextColor = focusedTextColor46 name.CharLimit = 324749 email := input.NewModel()48 email := textinput.NewModel()49 email.Placeholder = "Email"50 email.Prompt = blurredPrompt51 email.CharLimit = 645254 password := input.NewModel()53 password := textinput.NewModel()54 password.Placeholder = "Password"55 password.Prompt = blurredPrompt56 password.EchoMode = textinput.EchoPassword57 password.EchoCharacter = '•'
18 unmodified lines
7677 // Cycle between inputs78 case "tab", "shift+tab", "enter", "up", "down":7981 inputs := []input.Model{80 inputs := []textinput.Model{81 m.nameInput,82 m.emailInput,83 m.passwordInput,84 }
95 unmodified lines