From 6ef91c4cf2256b108246165bb31a3f5840a4ae80 Mon Sep 17 00:00:00 2001 From: Broderick Westrope Date: Thu, 14 Nov 2024 16:53:35 +1100 Subject: [PATCH] fix: build errors --- internal/tui/views/menu.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/tui/views/menu.go b/internal/tui/views/menu.go index b7c4dda..2648704 100644 --- a/internal/tui/views/menu.go +++ b/internal/tui/views/menu.go @@ -5,7 +5,6 @@ import ( "github.com/Broderick-Westrope/tetrigo/internal/tui/components" "github.com/Broderick-Westrope/tetrigo/internal/tui" - "github.com/Broderick-Westrope/tetrigo/internal/tui/components/textinput" "github.com/charmbracelet/bubbles/help" "github.com/charmbracelet/bubbles/key" tea "github.com/charmbracelet/bubbletea" @@ -38,7 +37,7 @@ type menuItem struct { } func NewMenuModel(_ *tui.MenuInput) *MenuModel { - nameInput := textinput.NewTextInputModel("Enter your name", 20, 20) + nameInput := components.NewTextInputModel("Enter your name", 20, 20) modePicker := components.NewHPickerModel([]components.KeyValuePair{ {Key: "Marathon", Value: tui.ModeMarathon}, {Key: "Sprint (40 Lines)", Value: tui.ModeSprint}, @@ -160,7 +159,7 @@ func (m MenuModel) startGame() (tea.Cmd, error) { return nil, errInvalidValue } case "Name": - playerName = i.model.(textinput.TextInputModel).Child.Value() + playerName = i.model.(components.TextInputModel).Child.Value() default: return nil, fmt.Errorf("invalid item label: %q", i.label) }