summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/core.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-22 18:15:42 +0200
committerKyren223 <Kyren223@proton.me>2024-11-22 18:15:42 +0200
commitbf84060b0139ddd942b552aa3649db287d98ac58 (patch)
tree9a5c5e7d3dbbde728661285613c5c9bbaa73d24a /internal/client/ui/core/core.go
parent00dd876f252fb9bcdbfd0c7ffc0eaebcdde661dd (diff)
First prototype design of networks scrollbar
Diffstat (limited to 'internal/client/ui/core/core.go')
-rw-r--r--internal/client/ui/core/core.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go
index 790c52e..bbc8576 100644
--- a/internal/client/ui/core/core.go
+++ b/internal/client/ui/core/core.go
@@ -11,6 +11,7 @@ import (
"github.com/kyren223/eko/internal/client/gateway"
"github.com/kyren223/eko/internal/client/ui"
"github.com/kyren223/eko/internal/client/ui/loadscreen"
+ "github.com/kyren223/eko/internal/client/ui/networks"
"github.com/kyren223/eko/pkg/snowflake"
)
@@ -32,6 +33,8 @@ type Model struct {
connected bool
id snowflake.ID
+
+ networks networks.Model
}
func New(privKey ed25519.PrivateKey, name string) Model {
@@ -42,6 +45,7 @@ func New(privKey ed25519.PrivateKey, name string) Model {
timeout: initialTimeout,
timer: newTimer(initialTimeout),
connected: false,
+ networks: networks.New(),
}
}
@@ -54,7 +58,7 @@ func (m Model) View() string {
return m.loading.View()
}
- return ""
+ return m.networks.View()
}
func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {