Skip to content

Commit 010373e

Browse files
committed
chore: delete unused import and change preview to be private
1 parent a132126 commit 010373e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/main/java/com/cornellappdev/transit/models/Place.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.cornellappdev.transit.models
22

33
import com.squareup.moshi.Json
4-
import com.squareup.moshi.JsonClass
54
import kotlinx.serialization.Serializable
65

76

app/src/main/java/com/cornellappdev/transit/ui/components/MenuItem.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ fun MenuItem(type: PlaceType, label: String, sublabel: String, onClick: () -> Un
3636
.clickable(onClick = onClick),
3737
verticalAlignment = Alignment.CenterVertically
3838
) {
39+
//TODO: Add icons for each ecosystem type
3940
if (type == PlaceType.APPLE_PLACE) {
4041
Image(
4142
painterResource(R.drawable.location_pin_gray),
@@ -71,12 +72,12 @@ fun MenuItem(type: PlaceType, label: String, sublabel: String, onClick: () -> Un
7172

7273
@Preview(showBackground = true)
7374
@Composable
74-
fun PreviewMenuItemBusStop() {
75+
private fun PreviewMenuItemBusStop() {
7576
MenuItem(PlaceType.BUS_STOP, "Ithaca Commons", "Ithaca, NY", {})
7677
}
7778

7879
@Preview(showBackground = true)
7980
@Composable
80-
fun PreviewMenuItemApplePlace() {
81+
private fun PreviewMenuItemApplePlace() {
8182
MenuItem(PlaceType.APPLE_PLACE, "Apple Place", "Ithaca, NY", {})
8283
}

app/src/main/java/com/cornellappdev/transit/ui/components/home/RoundedImagePlaceCard.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fun RoundedImagePlaceCard(
108108

109109
@Preview
110110
@Composable
111-
fun RoundedImagePlaceCardPreview() {
111+
private fun RoundedImagePlaceCardPreview() {
112112
RoundedImagePlaceCard(
113113
placeholderRes = R.drawable.olin_library,
114114
title = "Olin Library",

0 commit comments

Comments
 (0)