This commit is contained in:
2024-09-28 19:29:01 +02:00
parent 90f106f127
commit 8592b1cc50
12 changed files with 222 additions and 47 deletions
+1 -1
View File
@@ -24,5 +24,5 @@ func (t TextComponent) Render() string {
func (t *TextComponent) SetStyle(interface{}) {}
func Text(text string) *TextComponent {
return osui.NewComponent(&TextComponent{Text: text}).(*TextComponent)
return &TextComponent{Text: text}
}