Skip to content

Commit

Permalink
[feat] : 컬렉션 페이지 네비게이션 정의
Browse files Browse the repository at this point in the history
  • Loading branch information
ham2174 committed Feb 27, 2024
1 parent 6da47ae commit f3e870d
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.moya.funch.collection.navigation

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import com.moya.funch.collection.CollectionRoute

const val COLLECTION_ROUTE = "collection"

fun NavController.navigateToCollection(navOptions: NavOptions? = null) =
navigate(COLLECTION_ROUTE, navOptions)

fun NavGraphBuilder.collectionScreen(onNavigateToHome: () -> Unit) {
composable(route = COLLECTION_ROUTE) {
CollectionRoute(
onNavigateToHome = onNavigateToHome
)
}
}

0 comments on commit f3e870d

Please sign in to comment.