Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE-155] 캘린더 바텀시트 관련 로직 변경 #166

Merged
merged 3 commits into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,23 @@ fun PlanzBottomSheetContent(
.clickable { onExitClick() },
)
}
Spacer(modifier = Modifier.height(24.dp))
PlanzPlanList(
dayPlans = selectDayPlans,
onPlanItemClick = onPlanItemClick
)
if(selectDayPlans.isNotEmpty()) {
Spacer(modifier = Modifier.height(24.dp))
PlanzPlanList(
dayPlans = selectDayPlans,
onPlanItemClick = onPlanItemClick
)
} else {
Spacer(modifier = Modifier.height(70.dp))
Text(
text = stringResource(id = R.string.planz_has_not_plan),
style = PlanzTypography.body1,
color = Gray500,
modifier = Modifier.align(Alignment.CenterHorizontally)
)
Spacer(modifier = Modifier.height(70.dp))
}

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,7 @@ fun HomeCalendar(
currentDate = currentDate,
selectMode = PlanzCalendarSelectMode.SINGLE,
onDateSelectedListener = { widget, date, selected ->
if (date != CalendarDay.today() && monthlyPlanDates.containsKey(date))
onDateClick(date)
onDateClick(date)
},
monthlyDates = monthlyPlanDates
)
Expand Down
1 change: 1 addition & 0 deletions presentation/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<string name="planz_error_text_01">문제가 발생했습니다.</string>
<string name="planz_error_text_02">다시 시도해주세요.</string>
<string name="planz_has_not_plan">오늘의 약속이 없습니다.</string>

<string name="navigation_home_text">메인 홈</string>
<string name="navigation_create_plan_text">약속잡기</string>
Expand Down