Skip to content

Commit 718a9ee

Browse files
committed
[NDGL-98] feature: PlaceType에 AIRPORT 추가
1 parent f4ef01a commit 718a9ee

File tree

1 file changed

+4
-1
lines changed
  • feature/travel/src/main/java/com/yapp/ndgl/feature/travel/model

1 file changed

+4
-1
lines changed

feature/travel/src/main/java/com/yapp/ndgl/feature/travel/model/PlaceType.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ enum class PlaceType(@get:StringRes val labelRes: Int, @get:DrawableRes val icon
1212
RESTAURANT(R.string.place_type_restaurant, R.drawable.ic_14_restaurant),
1313
ATTRACTION(R.string.place_type_attraction, R.drawable.ic_14_flag),
1414
CAFE(R.string.place_type_cafe, R.drawable.ic_14_coffee),
15+
AIRPORT(R.string.place_type_airport, R.drawable.ic_14_airplane),
1516
TRANSPORT(R.string.place_type_transport, R.drawable.ic_14_car),
1617
}
1718

@@ -22,12 +23,13 @@ fun PlaceType.getColor(): androidx.compose.ui.graphics.Color {
2223
PlaceType.RESTAURANT -> NDGLTheme.colors.etcOrange
2324
PlaceType.ATTRACTION -> NDGLTheme.colors.etcGreen
2425
PlaceType.CAFE -> NDGLTheme.colors.etcOrange
26+
PlaceType.AIRPORT -> NDGLTheme.colors.etcGray
2527
PlaceType.TRANSPORT -> NDGLTheme.colors.etcGray
2628
}
2729
}
2830

2931
internal fun PlaceCategory.toPlaceType(): PlaceType = when (this) {
30-
PlaceCategory.AIRPORT -> PlaceType.TRANSPORT
32+
PlaceCategory.AIRPORT -> PlaceType.AIRPORT
3133
PlaceCategory.TRANSPORT -> PlaceType.TRANSPORT
3234
PlaceCategory.ATTRACTION -> PlaceType.ATTRACTION
3335
PlaceCategory.RESTAURANT -> PlaceType.RESTAURANT
@@ -40,6 +42,7 @@ internal fun PlaceType.toPlaceCategory(): PlaceCategory = when (this) {
4042
PlaceType.RESTAURANT -> PlaceCategory.RESTAURANT
4143
PlaceType.ATTRACTION -> PlaceCategory.ATTRACTION
4244
PlaceType.CAFE -> PlaceCategory.CAFE
45+
PlaceType.AIRPORT -> PlaceCategory.AIRPORT
4346
PlaceType.TRANSPORT -> PlaceCategory.TRANSPORT
4447
}
4548

0 commit comments

Comments
 (0)