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

[Feature] 사장님 가게 등록 바텀 시트 로직 적용 #540

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

hsgo2430
Copy link
Contributor

🐾 개요

  • 사장님 가게 등록 바텀 시트 로직 적용

🐳 상세 작업

  • 변경된 UI에 맞게 로직을 수정했습니다.
  • 사장님이 등록하신 가게 시간을 확인하는 부분을 변경된 UI에 맞게 수정하였습니다.

📷 결과 화면

@hsgo2430 hsgo2430 requested a review from a team as a code owner February 13, 2025 02:03
Copy link
Collaborator

@kongwoojin kongwoojin left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

colors = ButtonDefaults.buttonColors(ColorPrimary),
shape = RectangleShape,
modifier = Modifier
.height(38.dp)
Copy link
Collaborator

Choose a reason for hiding this comment

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

가능하면 컴포넌트들의 크기를 하드코딩하는건 지양하는게 좋을 것 같습니다!
(일부 기기에서는 화면이 비정상적으로 출력될 수 있습니다!)

,
horizontalArrangement = Arrangement.Center
){
Button(
Copy link
Collaborator

Choose a reason for hiding this comment

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

같은 디자인의 버튼이 반복되네요!
별도의 composable을 만드는것도 좋을 것 같습니다!

.width(128.dp)
) {
Text(
text = "등록하기",
Copy link
Collaborator

Choose a reason for hiding this comment

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

strings.xml로 옮겨주세요!

fun Hours.toTimeString(): String {

val hoursString: String =
if (this.hours < 10) "0" + this.hours.toString() else this.hours.toString()
Copy link
Collaborator

Choose a reason for hiding this comment

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

String.format(null, "%02d", this.hours) 처럼 작성해도 좋을 것 같습니다!


infoString = if(isClosed) "$infoString : 휴무"
else if (is24Hours) "$infoString : 24시간 운영"
else infoString + " : ${openTime} ~ ${closeTime}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

"$infoString : ${openTime} ~ ${closeTime}"로 스타일을 통일하는게 좋을 것 같습니다!

){
Button(
onClick = nextButtonClicked,
colors = if(categoryIdIsValid)ButtonDefaults.buttonColors(ColorPrimary) else ButtonDefaults.buttonColors(ColorDisabledButton),
Copy link
Collaborator

Choose a reason for hiding this comment

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

colors = ButtonDefaults.buttonColors(
                    backgroundColor = if (categoryIdIsValid) ColorPrimary else ColorDisabledButton
                ),

이게 훨씬 알아보기 쉬울 것 같습니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants