get rid of pointer to controller

This commit is contained in:
Drew Weymouth
2023-02-10 20:20:37 -08:00
parent 14e1bb0bf4
commit dd2ecf6206
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ type artistPageState struct {
sm *backend.ServerManager
im *backend.ImageManager
nav func(Route)
contr *controller.Controller
contr controller.Controller
}
type ArtistPage struct {
@@ -41,7 +41,7 @@ type ArtistPage struct {
OnPlayAlbum func(string, int)
}
func NewArtistPage(artistID string, sm *backend.ServerManager, im *backend.ImageManager, contr *controller.Controller, nav func(Route)) *ArtistPage {
func NewArtistPage(artistID string, sm *backend.ServerManager, im *backend.ImageManager, contr controller.Controller, nav func(Route)) *ArtistPage {
a := &ArtistPage{artistPageState: artistPageState{
artistID: artistID,
sm: sm,