Skip to content

Commit

Permalink
chore: Global refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Dec 26, 2024
1 parent 2ee74fc commit c76f158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.material3.Surface
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.platform.LocalContext
import com.infomaniak.core2.compose.core.LockScreenOrientation
import com.infomaniak.swisstransfer.ui.screen.onboarding.OnboardingScreen
import com.infomaniak.swisstransfer.ui.theme.LocalWindowAdaptiveInfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ sealed class MainNavigation : NavigationDestination() {
val startDestination = SentDestination

// If these classes have to be renamed, they need to be renamed here too.
val sentDestinationName = "SentDestination"
val receivedDestinationName = "ReceivedDestination"
val settingsDestinationName = "SettingsDestination"
val destinationsNames = listOf(sentDestinationName, receivedDestinationName, settingsDestinationName)
private const val sentDestinationName = "SentDestination"
private const val receivedDestinationName = "ReceivedDestination"
private const val settingsDestinationName = "SettingsDestination"
private val destinationsNames = listOf(sentDestinationName, receivedDestinationName, settingsDestinationName)

fun NavBackStackEntry.toMainDestination(): MainNavigation? {
return runCatching {
Expand Down

0 comments on commit c76f158

Please sign in to comment.