Skip to content

Commit

Permalink
feat: nav graph client module implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-gupta99 committed Aug 14, 2024
1 parent afe8d7a commit a33c278
Showing 1 changed file with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,6 @@ fun NavGraphBuilder.clientListScreenRoute(
}
}

fun NavController.navigateClientIdentifierScreen(clientId: Int) {
navigate(ClientScreens.ClientIdentifierScreen.argument(clientId))
}

fun NavController.navigateClientChargesScreen(clientId: Int) {
navigate(ClientScreens.ClientChargesScreen.argument(clientId))
}

fun NavController.navigateClientPinPointScreen(clientId: Int) {
navigate(ClientScreens.ClientPinPointScreen.argument(clientId))
}

fun NavController.navigateClientSignatureScreen(clientId: Int) {
navigate(ClientScreens.ClientSignatureScreen.argument(clientId))
}

fun NavController.navigateClientSurveyListScreen(clientId: Int) {
navigate(ClientScreens.ClientSurveyListScreen.argument(clientId))
}

fun NavGraphBuilder.clientDetailRoute(
onBackPressed: () -> Unit,
addLoanAccount: (Int) -> Unit,
Expand Down Expand Up @@ -243,4 +223,24 @@ fun NavGraphBuilder.clientSurveyQuestionRoute(

fun NavController.navigateClientDetailsScreen(clientId: Int) {
navigate(ClientScreens.ClientDetailScreen.argument(clientId))
}

fun NavController.navigateClientIdentifierScreen(clientId: Int) {
navigate(ClientScreens.ClientIdentifierScreen.argument(clientId))
}

fun NavController.navigateClientChargesScreen(clientId: Int) {
navigate(ClientScreens.ClientChargesScreen.argument(clientId))
}

fun NavController.navigateClientPinPointScreen(clientId: Int) {
navigate(ClientScreens.ClientPinPointScreen.argument(clientId))
}

fun NavController.navigateClientSignatureScreen(clientId: Int) {
navigate(ClientScreens.ClientSignatureScreen.argument(clientId))
}

fun NavController.navigateClientSurveyListScreen(clientId: Int) {
navigate(ClientScreens.ClientSurveyListScreen.argument(clientId))
}

0 comments on commit a33c278

Please sign in to comment.