Skip to content

Commit b5d584f

Browse files
committed
[NDGL-123] fix: 여행 카드 D-Day 표시 로직 및 썸네일 이미지 경로 수정
1 parent c7cc156 commit b5d584f

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

feature/home/src/main/java/com/yapp/ndgl/feature/home/main/HomeViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class HomeViewModel @Inject constructor(
7171
travelId = travel.userTravelId,
7272
days = travel.days,
7373
title = travel.title,
74-
imageUrl = travel.upcomingUserTravelPlace?.place?.thumbnail ?: "",
74+
imageUrl = travel.thumbnail ?: "",
7575
dDay = dDay,
7676
startDate = travel.startDate,
7777
endDate = travel.endDate,

feature/home/src/main/java/com/yapp/ndgl/feature/home/main/UpcomingTravelCardSection.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,19 +178,19 @@ private fun DayTag(
178178
modifier = modifier
179179
.background(
180180
color = NDGLTheme.colors.black100,
181-
shape = RoundedCornerShape(999.dp),
181+
shape = CircleShape,
182182
)
183183
.padding(horizontal = 12.dp, vertical = 4.dp),
184184
contentAlignment = Alignment.Center,
185185
) {
186186
Text(
187-
text = if (dDay <= 0) {
187+
text = if (dDay > 0) {
188188
stringResource(R.string.home_my_travel_card_d_day_minus, dDay)
189189
} else {
190190
stringResource(R.string.home_my_travel_card_d_day_plus, dDay)
191191
},
192-
style = NDGLTheme.typography.bodyMdMedium,
193192
color = NDGLTheme.colors.black400,
193+
style = NDGLTheme.typography.bodyMdMedium,
194194
)
195195
}
196196
}

feature/travel-helper/src/main/java/com/yapp/ndgl/feature/travelhelper/main/UpcomingTravelCardSection.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ private fun DayTag(
151151
modifier = modifier
152152
.background(
153153
color = NDGLTheme.colors.black100,
154-
shape = RoundedCornerShape(999.dp),
154+
shape = CircleShape,
155155
)
156156
.padding(horizontal = 12.dp, vertical = 4.dp),
157157
contentAlignment = Alignment.Center,
158158
) {
159159
Text(
160-
text = if (dDay <= 0) {
160+
text = if (dDay > 0) {
161161
stringResource(R.string.travel_helper_card_d_day_minus, dDay)
162162
} else {
163163
stringResource(R.string.travel_helper_card_d_day_plus, dDay)

feature/travel/src/main/java/com/yapp/ndgl/feature/travel/mytravel/MyTravelViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class MyTravelViewModel @Inject constructor(
6060
title = travel.title,
6161
startDate = travel.startDate,
6262
endDate = travel.endDate,
63-
imageUrl = travel.upcomingUserTravelPlace?.place?.thumbnail ?: "",
63+
imageUrl = travel.thumbnail ?: "",
6464
dDay = dDay,
6565
)
6666
}

feature/travel/src/main/java/com/yapp/ndgl/feature/travel/mytravel/UpcomingTravelCardSection.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private fun DayTag(
150150
contentAlignment = Alignment.Center,
151151
) {
152152
Text(
153-
text = if (dDay <= 0) {
153+
text = if (dDay > 0) {
154154
stringResource(R.string.my_travel_upcoming_travel_d_day_minus, dDay)
155155
} else {
156156
stringResource(R.string.my_travel_upcoming_travel_d_day_plus, dDay)
@@ -324,7 +324,7 @@ private fun UpcomingTravelCardPreview() {
324324
title = "도쿄 여행",
325325
startDate = LocalDate.of(2025, 2, 15),
326326
endDate = LocalDate.of(2025, 2, 20),
327-
dDay = -7,
327+
dDay = 7,
328328
imageUrl = "",
329329
),
330330
onTravelClick = { _, _ -> },

feature/travel/src/main/java/com/yapp/ndgl/feature/travel/mytravel/UpcomingTravelListSection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private fun DayTag(
143143
modifier = modifier
144144
.background(
145145
color = NDGLTheme.colors.black100,
146-
shape = RoundedCornerShape(999.dp),
146+
shape = CircleShape,
147147
)
148148
.padding(horizontal = 12.dp, vertical = 4.dp),
149149
contentAlignment = Alignment.Center,

0 commit comments

Comments
 (0)