Skip to content

Commit

Permalink
refactor: Remove now unused TransferDetailsDestination
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Dec 18, 2024
1 parent 1faa081 commit 2464ae6
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ sealed class MainNavigation : NavigationDestination() {
}
}

@Serializable
data class TransferDetailsDestination(val transferUuid: String) : MainNavigation()

@Serializable
data object SettingsDestination : MainNavigation()

Expand All @@ -70,7 +67,6 @@ sealed class MainNavigation : NavigationDestination() {
val entries = listOf(
SentDestination::class,
ReceivedDestination::class,
TransferDetailsDestination::class,
SettingsDestination::class,
)

Expand All @@ -80,7 +76,6 @@ sealed class MainNavigation : NavigationDestination() {
when (entries.firstOrNull { destinationRoute.contains(it.qualifiedName.toString()) }) {
SentDestination::class -> this.toRoute<SentDestination>()
ReceivedDestination::class -> this.toRoute<ReceivedDestination>()
TransferDetailsDestination::class -> this.toRoute<TransferDetailsDestination>()
SettingsDestination::class -> this.toRoute<SettingsDestination>()
else -> error("Destination $destinationRoute is not handled")
}
Expand Down

0 comments on commit 2464ae6

Please sign in to comment.