Ver código fonte

refactor(cmd): move page name consts to chatview.go

ayn2op 5 meses atrás
pai
commit
4142c30790
2 arquivos alterados com 7 adições e 7 exclusões
  1. 0 7
      cmd/application.go
  2. 7 0
      cmd/chatview.go

+ 0 - 7
cmd/application.go

@@ -10,13 +10,6 @@ import (
 	"golang.design/x/clipboard"
 )
 
-const (
-	flexPageName            = "flex"
-	mentionsListPageName    = "mentionsList"
-	attachmentsListPageName = "attachmentsList"
-	confirmModalPageName    = "confirmModal"
-)
-
 type application struct {
 	*tview.Application
 	chatView *chatView

+ 7 - 0
cmd/chatview.go

@@ -10,6 +10,13 @@ import (
 	"github.com/gdamore/tcell/v2"
 )
 
+const (
+	flexPageName            = "flex"
+	mentionsListPageName    = "mentionsList"
+	attachmentsListPageName = "attachmentsList"
+	confirmModalPageName    = "confirmModal"
+)
+
 type chatView struct {
 	*tview.Pages