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

feat: 도서관 남은 좌석 UI 로직 #403

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ private fun LibrarySeatScreen(

is SeatLoadState.Error -> {
item(span = { GridItemSpan(maxLineSpan) }) {
LoadingErrorText()
LoadingErrorText(
modifier = Modifier
)
}
}

Expand Down Expand Up @@ -179,13 +181,15 @@ private fun PagingLoadingIndicator(modifier: Modifier = Modifier) {
@Composable
private fun LoadingErrorText(modifier: Modifier = Modifier) {
Box(modifier = modifier) {
androidx.compose.material.Text(
text = stringResource(id = com.ku_stacks.ku_ring.designsystem.R.string.notice_refresh_error_message),
Text(
text = stringResource(id = R.string.library_seats_load_fail),
fontFamily = SfProDisplay,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SfProDisplay 글꼴을 사용하신 이유가 있나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정했습니다,,

fontWeight = FontWeight.Normal,
fontSize = 14.sp,
color = colorResource(id = com.ku_stacks.ku_ring.designsystem.R.color.kus_label),
modifier = Modifier.align(Alignment.Center),
color = KuringTheme.colors.textCaption1,
modifier = Modifier
.align(Alignment.Center)
.padding(top = 30.dp),
textAlign = TextAlign.Center,
)
}
Expand Down Expand Up @@ -232,14 +236,14 @@ private fun LibrarySeatScreenPreview() {

@LightAndDarkPreview
@Composable
private fun LoadingPreview() {
private fun LibrarySeatFailPreview() {
KuringTheme {
LibrarySeatScreen(
onBackButtonClick = {},
onReservationButtonClick = {},
onStatusReloadButtonClick = { },
isLoading = false,
seatStatus = SeatLoadState.InitialLoading
seatStatus = SeatLoadState.Error
)
}
}
1 change: 1 addition & 0 deletions feature/library/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<string name="library_seats_title">도서관 잔여좌석</string>
<string name="library_seats_description">도서관 잔여좌석을 확인할 수 있어요.\n열람실 예약하러가기 버튼을 누르면 \n도서관 앱으로 이동해요.</string>
<string name="library_seats_button_reservation">예약하기</string>
<string name="library_seats_load_fail">홈페이지 사정 상,\n잔여좌석 정보를 불러올 수 없어요.</string>
</resources>
Loading