Implement graphql api client and update gui to display data
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package screens
|
||||
|
||||
import tea "github.com/charmbracelet/bubbletea"
|
||||
|
||||
type ErrorScreen struct {
|
||||
Err error
|
||||
}
|
||||
|
||||
func (m ErrorScreen) Init() tea.Cmd {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m ErrorScreen) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
return m, nil
|
||||
}
|
||||
|
||||
func (m ErrorScreen) View() string {
|
||||
return m.Err.Error()
|
||||
}
|
||||
Reference in New Issue
Block a user