Skip to content

Commit

Permalink
refactor: Rename isReceivedDeeplink into isTransferDeeplink
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Dec 27, 2024
1 parent e2c32e7 commit 08c7f74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ import com.infomaniak.swisstransfer.ui.screen.main.transfers.TransfersScreenWrap
fun MainNavHost(
navController: NavHostController,
currentDestination: MainNavigation,
isReceivedDeeplink: Boolean,
isTransferDeeplink: Boolean,
) {
NavHost(
navController = navController,
startDestination = if (isReceivedDeeplink) ReceivedDestination() else MainNavigation.startDestination,
startDestination = if (isTransferDeeplink) ReceivedDestination() else MainNavigation.startDestination,
enterTransition = { if (currentDestination.enableTransition) fadeIn() else EnterTransition.None },
exitTransition = { if (currentDestination.enableTransition) fadeOut() else ExitTransition.None },
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import com.infomaniak.swisstransfer.ui.theme.SwissTransferTheme
import com.infomaniak.swisstransfer.ui.utils.PreviewAllWindows

@Composable
fun MainScreen(isReceivedDeeplink: Boolean = false) {
fun MainScreen(isTransferDeeplink: Boolean = false) {
val navController = rememberNavController()

val navBackStackEntry by navController.currentBackStackEntryAsState()
Expand All @@ -44,7 +44,7 @@ fun MainScreen(isReceivedDeeplink: Boolean = false) {
navController = navController,
currentDestination = currentDestination,
largeWindowTopAppBar = { BrandTopAppBar() },
content = { MainNavHost(navController, currentDestination, isReceivedDeeplink) },
content = { MainNavHost(navController, currentDestination, isTransferDeeplink) },
)
}

Expand Down

0 comments on commit 08c7f74

Please sign in to comment.