Skip to content

Commit

Permalink
fix details screen navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
mutukuian committed May 13, 2024
1 parent e653d77 commit bed0832
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fun ShipListScreen(
view:SearchViewModel = hiltViewModel()
) {
val state = viewModel.state.value
val status = view.state.value


var searchText by remember { mutableStateOf("") }

Expand Down Expand Up @@ -90,7 +90,7 @@ fun ShipListScreen(

items(state.ships) { ship ->
ShipImageCard(ships = ship, onItemClick = {
navController.navigate(Screen.ShipDetailScreen.route)
navController.navigate(Screen.ShipDetailScreen.route +"/{ships.id}")
})
}
}
Expand Down

0 comments on commit bed0832

Please sign in to comment.