Skip to content

Commit

Permalink
[feature/#245] Apply code review
Browse files Browse the repository at this point in the history
  • Loading branch information
l2hyunwoo committed Aug 12, 2024
1 parent 5de2cff commit 71427ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -27,8 +27,8 @@ class TimetableItemDetailScreenRobot @Inject constructor(

suspend fun setupScreenContent() {
val firstSessionId = SessionsAllResponse.Companion.fake().sessions.first().id
robotTestRule.setContentWithNavigation<TimetableItemDestination>(
startDestination = { TimetableItemDestination(firstSessionId) },
robotTestRule.setContentWithNavigation<TimetableItemDetailDestination>(
startDestination = { TimetableItemDetailDestination(firstSessionId) },
) {
KaigiTheme {
TimetableItemDetailScreen(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -55,7 +55,7 @@ fun NavGraphBuilder.sessionScreens(
onCalendarRegistrationClick: (TimetableItem) -> Unit,
onShareClick: (TimetableItem) -> Unit,
) {
composable<TimetableItemDestination> {
composable<TimetableItemDetailDestination> {
TimetableItemDetailScreen(
onNavigationIconClick = onNavigationIconClick,
onLinkClick = onLinkClick,
Expand All @@ -68,7 +68,7 @@ fun NavGraphBuilder.sessionScreens(
fun NavController.navigateToTimetableItemDetailScreen(
timetableItem: TimetableItem,
) {
navigate(TimetableItemDestination(timetableItem.id.value))
navigate(TimetableItemDetailDestination(timetableItem.id.value))
}

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class TimetableItemDestination(
data class TimetableItemDetailDestination(
@SerialName("timetableItemId")
val timetableItemId: String,
)

0 comments on commit 71427ab

Please sign in to comment.