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 23, 2024
1 parent cd02acb commit 4fb944c
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 @@ -422,6 +422,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 4fb944c

Please sign in to comment.