Skip to content

Commit 6684f06

Browse files
committed
feat: add previews for menu item
1 parent 44cd1af commit 6684f06

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

  • app/src/main/java/com/cornellappdev/transit/ui/components

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

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,29 @@ private fun PreviewMenuItemBusStop() {
104104
@Preview(showBackground = true)
105105
@Composable
106106
private fun PreviewMenuItemApplePlace() {
107-
MenuItem(PlaceType.EATERY, "Apple Place", "Ithaca, NY", {})
108-
}
107+
MenuItem(PlaceType.APPLE_PLACE, "Apple Place", "Ithaca, NY", {})
108+
}
109+
110+
@Preview(showBackground = true)
111+
@Composable
112+
private fun PreviewMenuItemEatery() {
113+
MenuItem(PlaceType.EATERY, "Eatery", "Ithaca, NY", {})
114+
}
115+
116+
@Preview(showBackground = true)
117+
@Composable
118+
private fun PreviewMenuItemGym() {
119+
MenuItem(PlaceType.GYM, "Gym", "Ithaca, NY", {})
120+
}
121+
122+
@Preview(showBackground = true)
123+
@Composable
124+
private fun PreviewMenuItemLibrary() {
125+
MenuItem(PlaceType.LIBRARY, "Library", "Ithaca, NY", {})
126+
}
127+
128+
@Preview(showBackground = true)
129+
@Composable
130+
private fun PreviewMenuItemPrinter() {
131+
MenuItem(PlaceType.PRINTER, "Printer", "Ithaca, NY", {})
132+
}

0 commit comments

Comments
 (0)