diff --git a/feature/trip-planner/ui/src/main/kotlin/xyz/ksharma/krail/trip_planner/ui/components/JourneyLeg.kt b/feature/trip-planner/ui/src/main/kotlin/xyz/ksharma/krail/trip_planner/ui/components/JourneyLeg.kt index 32769513..1b0efbdf 100644 --- a/feature/trip-planner/ui/src/main/kotlin/xyz/ksharma/krail/trip_planner/ui/components/JourneyLeg.kt +++ b/feature/trip-planner/ui/src/main/kotlin/xyz/ksharma/krail/trip_planner/ui/components/JourneyLeg.kt @@ -130,7 +130,7 @@ fun JourneyLeg( @PreviewLightDark @Preview(fontScale = 2f) @Composable -private fun PreviewJourneyLeg() { +private fun PreviewJourneyLegBus() { KrailTheme { JourneyLeg( transportModeLine = TransportModeLine( @@ -144,3 +144,38 @@ private fun PreviewJourneyLeg() { ) } } + + +@PreviewLightDark +@Composable +private fun PreviewJourneyLegTrain() { + KrailTheme { + JourneyLeg( + transportModeLine = TransportModeLine( + transportMode = TransportMode.Train(), + lineName = "T2", + ), + stopsInfo = "2 stops (1h 10mins)", + departureTime = "8:25am", + stopName = "Central Station", + isWheelchairAccessible = true, + ) + } +} + +@PreviewLightDark +@Composable +private fun PreviewJourneyLegMetro() { + KrailTheme { + JourneyLeg( + transportModeLine = TransportModeLine( + transportMode = TransportMode.Metro(), + lineName = "M1", + ), + stopsInfo = "2 stops (1h 10mins)", + departureTime = "8:25am", + stopName = "Central Station", + isWheelchairAccessible = true, + ) + } +}