diff --git a/core/testing/src/main/java/io/github/droidkaigi/confsched/testing/robot/TimetableItemDetailScreenRobot.kt b/core/testing/src/main/java/io/github/droidkaigi/confsched/testing/robot/TimetableItemDetailScreenRobot.kt index 3ed7b6cf3..1a930ab55 100644 --- a/core/testing/src/main/java/io/github/droidkaigi/confsched/testing/robot/TimetableItemDetailScreenRobot.kt +++ b/core/testing/src/main/java/io/github/droidkaigi/confsched/testing/robot/TimetableItemDetailScreenRobot.kt @@ -14,7 +14,7 @@ import io.github.droidkaigi.confsched.data.sessions.response.SessionsAllResponse import io.github.droidkaigi.confsched.designsystem.theme.KaigiTheme import io.github.droidkaigi.confsched.sessions.TimetableItemDetailBookmarkIconTestTag import io.github.droidkaigi.confsched.sessions.TimetableItemDetailScreen -import io.github.droidkaigi.confsched.sessions.navigation.TimetableItemDestination +import io.github.droidkaigi.confsched.sessions.navigation.TimetableItemDetailDestination import javax.inject.Inject class TimetableItemDetailScreenRobot @Inject constructor( @@ -27,8 +27,8 @@ class TimetableItemDetailScreenRobot @Inject constructor( suspend fun setupScreenContent() { val firstSessionId = SessionsAllResponse.Companion.fake().sessions.first().id - robotTestRule.setContentWithNavigation( - startDestination = { TimetableItemDestination(firstSessionId) }, + robotTestRule.setContentWithNavigation( + startDestination = { TimetableItemDetailDestination(firstSessionId) }, ) { KaigiTheme { TimetableItemDetailScreen( diff --git a/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/TimetableItemDetailScreen.kt b/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/TimetableItemDetailScreen.kt index 57321c7fc..6a385221b 100644 --- a/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/TimetableItemDetailScreen.kt +++ b/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/TimetableItemDetailScreen.kt @@ -40,7 +40,7 @@ import io.github.droidkaigi.confsched.sessions.component.TimetableItemDetailCont import io.github.droidkaigi.confsched.sessions.component.TimetableItemDetailHeadline import io.github.droidkaigi.confsched.sessions.component.TimetableItemDetailSummaryCard import io.github.droidkaigi.confsched.sessions.component.TimetableItemDetailTopAppBar -import io.github.droidkaigi.confsched.sessions.navigation.TimetableItemDestination +import io.github.droidkaigi.confsched.sessions.navigation.TimetableItemDetailDestination import io.github.droidkaigi.confsched.ui.SnackbarMessageEffect import io.github.droidkaigi.confsched.ui.UserMessageStateHolder import io.github.droidkaigi.confsched.ui.UserMessageStateHolderImpl @@ -55,7 +55,7 @@ fun NavGraphBuilder.sessionScreens( onCalendarRegistrationClick: (TimetableItem) -> Unit, onShareClick: (TimetableItem) -> Unit, ) { - composable { + composable { TimetableItemDetailScreen( onNavigationIconClick = onNavigationIconClick, onLinkClick = onLinkClick, @@ -68,7 +68,7 @@ fun NavGraphBuilder.sessionScreens( fun NavController.navigateToTimetableItemDetailScreen( timetableItem: TimetableItem, ) { - navigate(TimetableItemDestination(timetableItem.id.value)) + navigate(TimetableItemDetailDestination(timetableItem.id.value)) } @Composable diff --git a/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/navigation/TimetableItemDestination.kt b/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/navigation/TimetableItemDetailDestination.kt similarity index 84% rename from feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/navigation/TimetableItemDestination.kt rename to feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/navigation/TimetableItemDetailDestination.kt index 327c366d6..60256ee64 100644 --- a/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/navigation/TimetableItemDestination.kt +++ b/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/navigation/TimetableItemDetailDestination.kt @@ -4,7 +4,7 @@ import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Serializable -data class TimetableItemDestination( +data class TimetableItemDetailDestination( @SerialName("timetableItemId") val timetableItemId: String, )