Skip to content

Commit

Permalink
refactor: remove or comment unused items
Browse files Browse the repository at this point in the history
  • Loading branch information
SidonieBouthors committed Apr 6, 2024
1 parent ceda9fb commit d75838a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sealed class Destination(

data object Login : Destination("login")

data class Receipt(val id: String) : Destination("receipt/$id")
// data class Receipt(val id: String) : Destination("receipt/$id")
}

val MAIN_TABS_LIST =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ class NavigationActions(private val navController: NavHostController) {
/* Handle auth error */
}

fun onCreateReceipt() {
/*TODO create new uid*/
navController.navigate(Destination.Receipt("new").route)
}

fun back() {
/*TODO handle back navigation*/
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ class NavigationActionsTest {

navActions.onAuthError()
navActions.onLogin(user)

navActions.back()
}
}

0 comments on commit d75838a

Please sign in to comment.