Migrate from NewModel() to New() in examples for Bubbles-related stuff

This commit is contained in:
Christian Rocha
2022-01-10 20:42:10 -05:00
parent 843b6a5249
commit 66cea095eb
15 changed files with 15 additions and 15 deletions

View File

@@ -35,7 +35,7 @@ const (
var helpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#626262")).Render
func main() {
prog := progress.NewModel(progress.WithScaledGradient("#FF7CCB", "#FDFF8C"))
prog := progress.New(progress.WithScaledGradient("#FF7CCB", "#FDFF8C"))
if err := tea.NewProgram(model{progress: prog}).Start(); err != nil {
fmt.Println("Oh no!", err)