mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-14 08:46:39 -07:00
Migrate from NewModel() to New() in examples for Bubbles-related stuff
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user