Skip to content

Commit

Permalink
Delete old UI for JourneyDetailCard
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Oct 26, 2024
1 parent 321ddfc commit 068fbce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 656 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,15 @@ internal fun List<TransportMode>?.toColors(onSurface: Color): List<Color> = when
}
}

internal fun TransportMode.buildPlatformText(platformNumber: Char): String? {
return when (this) {
is TransportMode.Train, is TransportMode.Metro -> "Platform $platformNumber"
is TransportMode.Bus -> "Stand $platformNumber"
is TransportMode.Ferry -> "Wharf $platformNumber"
else -> null
}
}

// region Previews

@PreviewLightDark
Expand Down
Loading

0 comments on commit 068fbce

Please sign in to comment.