Skip to content

Commit

Permalink
#86 fix : 위시 맛집 화면 전환 플로우 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
BENDENG1 committed Dec 13, 2023
1 parent 686d75a commit b4bcf4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import com.avengers.nibobnebob.presentation.ui.customBack
import com.avengers.nibobnebob.presentation.ui.main.MainViewModel
import com.avengers.nibobnebob.presentation.ui.main.mypage.share.MyPageSharedUiEvent
import com.avengers.nibobnebob.presentation.ui.main.mypage.share.MyPageSharedViewModel
import com.avengers.nibobnebob.presentation.ui.toAddRestaurant
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down Expand Up @@ -129,4 +128,13 @@ class WishRestaurantListFragment :
navigate(action)
}

private fun NavController.toAddRestaurant(restaurantName: String, restaurantId: Int) {
val action =
WishRestaurantListFragmentDirections.actionWishRestaurantListFragmentToAddMyRestaurantFragment2(
restaurantName,
restaurantId
)
navigate(action)
}

}
3 changes: 3 additions & 0 deletions Aos/app/src/main/res/navigation/nav_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
<action
android:id="@+id/action_wishRestaurantListFragment_to_restaurantDetailFragment"
app:destination="@id/restaurantDetailFragment" />
<action
android:id="@+id/action_wishRestaurantListFragment_to_addMyRestaurantFragment2"
app:destination="@id/addMyRestaurantFragment" />
</fragment>
<fragment
android:id="@+id/restaurantSearchFragment"
Expand Down

0 comments on commit b4bcf4b

Please sign in to comment.