feat(player): wire StationsScreen and FavoritesScreen to actual playback

This commit is contained in:
nk
2026-06-01 13:19:23 +03:00
parent ada422053f
commit 9ce9758361
3 changed files with 9 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ import com.radiola.ui.components.*
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun StationsScreen(
onStationClick: (Int) -> Unit,
onStationClick: (Station) -> Unit,
modifier: Modifier = Modifier,
viewModel: StationsViewModel = hiltViewModel()
) {
@@ -67,7 +67,7 @@ fun StationsScreen(
items(stations, key = { it.id }) { station ->
StationCard(
station = station,
onClick = { onStationClick(station.id) }
onClick = { onStationClick(station) }
)
}
}