31d29e5a441e37952fb2eaf77e5235500069ab14

Author
Christian Rocha <christian@rocha.is>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

chore: remove extraneous declarations

Diff

 1diff --git a/ui/pages/selection/selection.go b/ui/pages/selection/selection.go
 2index 01e3d52a2683931589dd55fb29bea4d0cfe4203a..6ac4bf7869283d5fd59079adff93f2e6fb0f573d 100644
 3--- a/ui/pages/selection/selection.go
 4+++ b/ui/pages/selection/selection.go
 5@@ -302,6 +302,9 @@ func (s *Selection) View() string {
 6 			readmeStatus,
 7 		))
 8 	}
 9-	ts := s.common.Styles.Tabs.Copy()
10-	return lipgloss.JoinVertical(lipgloss.Left, ts.Render(s.tabs.View()), view)
11+	return lipgloss.JoinVertical(
12+		lipgloss.Left,
13+		s.common.Styles.Tabs.Render(s.tabs.View()),
14+		view,
15+	)
16 }
17diff --git a/ui/ui.go b/ui/ui.go
18index ccd05a1662395c5b04073050c7bcd291b53d04fa..1543146220d2aed1a2a073a72d8c0e343fe38bb1 100644
19--- a/ui/ui.go
20+++ b/ui/ui.go
21@@ -240,7 +240,6 @@ func (ui *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
22 func (ui *UI) View() string {
23 	var view string
24 	wm, hm := ui.getMargins()
25-	style := ui.common.Styles.App.Copy()
26 	switch ui.state {
27 	case startState:
28 		view = "Loading..."
29@@ -266,7 +265,7 @@ func (ui *UI) View() string {
30 	if ui.showFooter {
31 		view = lipgloss.JoinVertical(lipgloss.Left, view, ui.footer.View())
32 	}
33-	return style.Render(view)
34+	return ui.common.Styles.App.Render(view)
35 }
36 
37 func (ui *UI) setRepoCmd(rn string) tea.Cmd {