Skip to content

Commit ec959fc

Browse files
committed
feat: retain previous responses
1 parent e01e316 commit ec959fc

File tree

4 files changed

+120
-36
lines changed

4 files changed

+120
-36
lines changed

models/homepage.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package models
22

33
import (
44
"fmt"
5+
"github.com/initia-labs/weave/styles"
56

67
tea "github.com/charmbracelet/bubbletea"
78
"github.com/initia-labs/weave/models/weaveinit"
@@ -67,9 +68,8 @@ func (m *Homepage) View() string {
6768

6869
if m.isFirstTimeSetup {
6970
view += fmt.Sprintf(
70-
m.TextInput.View("It looks like this is your first time using Weave. Let's get started!\n" +
71-
"Please set up a Gas Station account (The account that will hold the funds required by the " +
72-
"OPinit-bots or relayer to send transactions):"),
71+
styles.RenderPrompt("It looks like this is your first time using Weave. Let's get started!\nPlease set up a Gas Station account (The account that will hold the funds required by the OPinit-bots or relayer to send transactions):", []string{}, styles.Information),
72+
m.TextInput.View(),
7373
)
7474
} else {
7575
view += "What would you like to do today?\n"

0 commit comments

Comments
 (0)