From b4bcf4bf70247f4b55ef35ab0e80d8ef2f39fb49 Mon Sep 17 00:00:00 2001 From: BENDENG1 <76191161+BENDENG1@users.noreply.github.com> Date: Thu, 14 Dec 2023 00:21:41 +0900 Subject: [PATCH] =?UTF-8?q?#86=20fix=20:=20=EC=9C=84=EC=8B=9C=20=EB=A7=9B?= =?UTF-8?q?=EC=A7=91=20=ED=99=94=EB=A9=B4=20=EC=A0=84=ED=99=98=20=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/mypage/wishlist/WishRestaurantListFragment.kt | 10 +++++++++- Aos/app/src/main/res/navigation/nav_graph.xml | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Aos/app/src/main/java/com/avengers/nibobnebob/presentation/ui/main/mypage/wishlist/WishRestaurantListFragment.kt b/Aos/app/src/main/java/com/avengers/nibobnebob/presentation/ui/main/mypage/wishlist/WishRestaurantListFragment.kt index 5de96c0d..9efd5915 100644 --- a/Aos/app/src/main/java/com/avengers/nibobnebob/presentation/ui/main/mypage/wishlist/WishRestaurantListFragment.kt +++ b/Aos/app/src/main/java/com/avengers/nibobnebob/presentation/ui/main/mypage/wishlist/WishRestaurantListFragment.kt @@ -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 @@ -129,4 +128,13 @@ class WishRestaurantListFragment : navigate(action) } + private fun NavController.toAddRestaurant(restaurantName: String, restaurantId: Int) { + val action = + WishRestaurantListFragmentDirections.actionWishRestaurantListFragmentToAddMyRestaurantFragment2( + restaurantName, + restaurantId + ) + navigate(action) + } + } \ No newline at end of file diff --git a/Aos/app/src/main/res/navigation/nav_graph.xml b/Aos/app/src/main/res/navigation/nav_graph.xml index 4a700c73..4a45ba35 100644 --- a/Aos/app/src/main/res/navigation/nav_graph.xml +++ b/Aos/app/src/main/res/navigation/nav_graph.xml @@ -115,6 +115,9 @@ +