From 59088e043e5e4ffaafc4ac169529de95f54fa745 Mon Sep 17 00:00:00 2001 From: seoyeonsw Date: Sat, 9 Nov 2024 06:56:18 +0900 Subject: [PATCH] =?UTF-8?q?=EB=81=9D!!!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/screen/DetailRecommendedItem.kt | 15 +++++++++++---- .../presentation/detail/screen/DetailScreen.kt | 6 +++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/hackathon/alddeul_babsang/presentation/detail/screen/DetailRecommendedItem.kt b/app/src/main/java/com/hackathon/alddeul_babsang/presentation/detail/screen/DetailRecommendedItem.kt index 15f26e7..c1667da 100644 --- a/app/src/main/java/com/hackathon/alddeul_babsang/presentation/detail/screen/DetailRecommendedItem.kt +++ b/app/src/main/java/com/hackathon/alddeul_babsang/presentation/detail/screen/DetailRecommendedItem.kt @@ -27,6 +27,7 @@ import com.hackathon.alddeul_babsang.core_ui.theme.Blue import com.hackathon.alddeul_babsang.core_ui.theme.Font_B04 import com.hackathon.alddeul_babsang.core_ui.theme.Orange700 import com.hackathon.alddeul_babsang.core_ui.theme.Pink +import com.hackathon.alddeul_babsang.core_ui.theme.White import com.hackathon.alddeul_babsang.core_ui.theme.Yellow import com.hackathon.alddeul_babsang.core_ui.theme.body1Semi import com.hackathon.alddeul_babsang.core_ui.theme.body4Regular @@ -51,7 +52,13 @@ fun DetailRecommendedItem( color = Black ) Text( - text = data.category, + modifier = Modifier.padding(top = 6.dp), + text = when(data.category) { + "KOREAN" -> "한식" + "CHINESE" -> "중식" + "WESTERN_JAPANESE" -> "경양식/일식" + else -> "기타외식업" + }, style = body4Regular, color = Font_B04 ) @@ -89,9 +96,9 @@ fun LoadImage2(codeName: String) { modifier = Modifier .fillMaxWidth() .fillMaxHeight() - .padding(horizontal = 15.dp) - .padding(bottom = 80.dp) - .padding(top = 15.dp) + .align(Alignment.Center) + .padding(vertical = 40.dp) + .padding(horizontal = 40.dp) ) } } diff --git a/app/src/main/java/com/hackathon/alddeul_babsang/presentation/detail/screen/DetailScreen.kt b/app/src/main/java/com/hackathon/alddeul_babsang/presentation/detail/screen/DetailScreen.kt index 365ee73..3f89e14 100644 --- a/app/src/main/java/com/hackathon/alddeul_babsang/presentation/detail/screen/DetailScreen.kt +++ b/app/src/main/java/com/hackathon/alddeul_babsang/presentation/detail/screen/DetailScreen.kt @@ -188,9 +188,9 @@ fun DetailScreen( ) { AsyncImage( model = data.storeInfo.imageUrl ?: when (data.storeInfo.category) { - "한식" -> R.drawable.ic_korean_food - "중식" -> R.drawable.ic_chinese_food - "경양식/일식" -> R.drawable.ic_japanese_food + "KOREAN" -> R.drawable.ic_korean_food + "CHINESE" -> R.drawable.ic_chinese_food + "WESTERN_JAPANESE" -> R.drawable.ic_japanese_food else -> R.drawable.ic_etc_food }, contentDescription = null,