Skip to content

Commit

Permalink
feature #866: connect navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
chattymin committed Sep 23, 2024
1 parent cf07b4e commit bc2b5c0
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ import org.sopt.official.designsystem.SoptTheme
import org.sopt.official.feature.fortune.component.FortuneTopBar
import org.sopt.official.feature.fortune.feature.fortundDetail.FortuneDetail
import org.sopt.official.feature.fortune.feature.fortundDetail.FortuneDetailRoute
import org.sopt.official.feature.fortune.feature.fortuneAmulet.FortuneAmulet
import org.sopt.official.feature.fortune.feature.fortuneAmulet.FortuneAmuletRoute
import org.sopt.official.feature.fortune.feature.home.Home
import org.sopt.official.feature.fortune.feature.home.HomeRoute

Expand Down Expand Up @@ -78,7 +80,20 @@ fun MainScreen(
composable<FortuneDetail> { backStackEntry ->
val items = backStackEntry.toRoute<FortuneDetail>()
FortuneDetailRoute(
date = items.date
paddingValue = paddingValue,
date = items.date,
navigateToFortuneAmulet = {
navController.navigate(FortuneAmulet)
}
)
}

composable<FortuneAmulet> {
FortuneAmuletRoute(
paddingValue = paddingValue,
navigateToHome = {
// TODO: Navigate to Home
}
)
}
}
Expand Down

0 comments on commit bc2b5c0

Please sign in to comment.