Skip to content

Commit

Permalink
[fix] defaultvalue제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ddyeon committed Jul 9, 2024
1 parent b087a47 commit c749480
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import com.mashup.dorabangs.feature.storage.storage.model.StorageFolderItem
fun NavController.navigateToStorage(navOptions: NavOptions) = navigate(NavigationRoute.StorageScreen.route, navOptions)

fun NavGraphBuilder.storageNavigation(
navigateToStorageDetail: (StorageFolderItem) -> Unit = {},
navigateToStorageDetail: (StorageFolderItem) -> Unit,
navigateToFolderManage: (FolderManageType) -> Unit,

) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import org.orbitmvi.orbit.compose.collectAsState
@Composable
fun StorageRoute(
storageViewModel: StorageViewModel = hiltViewModel(),
navigateToStorageDetail: (StorageFolderItem) -> Unit = {},
navigateToFolderManage: (FolderManageType) -> Unit = {},
navigateToStorageDetail: (StorageFolderItem) -> Unit,
navigateToFolderManage: (FolderManageType) -> Unit,
) {
val storageState by storageViewModel.collectAsState()
Box {
Expand Down Expand Up @@ -73,8 +73,8 @@ fun StorageRoute(

@Composable
fun StorageScreen(
navigateToStorageDetail: (StorageFolderItem) -> Unit = {},
onClickSettingButton: (StorageFolderItem) -> Unit = {},
navigateToStorageDetail: (StorageFolderItem) -> Unit,
onClickSettingButton: (StorageFolderItem) -> Unit,
onClickAddFolderIcon: () -> Unit = {},
) {
Column(
Expand Down Expand Up @@ -124,5 +124,8 @@ fun StorageTopAppBar(
@Preview
@Composable
fun PreviewStorageScreen() {
StorageRoute()
StorageRoute(
navigateToStorageDetail = {},
navigateToFolderManage = {}
)
}

0 comments on commit c749480

Please sign in to comment.