feat(player): wire StationsScreen and FavoritesScreen to actual playback
This commit is contained in:
@@ -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) }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user