-
Notifications
You must be signed in to change notification settings - Fork 5
refactor: 알바 토크 관련 수정 중 #147
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
Conversation
|
💄 Storybook: https://673dcf13c9a3a1189a7c6fd4-gmytunjkia.chromatic.com/ # Chromatic에서 생성된 Storybook URL |
| import apiClient from "@/lib/apiClient"; | ||
|
|
||
| // 알바폼 상세 조회(로그인 안한 유저도 조회 가능) | ||
| // 알바폼 상세 조회(로그인 여부에 따라 다른 응답) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
|
||
| return ( | ||
| <div className="min-h-screen bg-white py-12"> | ||
| <main className="min-h-screen bg-white py-12"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app/layout 에 main태그가 있어서 여기는 div로 유지하시죠! (또는 한번 감싸는 태그가 없어도 될 거 같아요)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵
| disabled={addComment.isPending || !newComment.trim()} | ||
| className="h-[52px] w-[108px] text-base lg:h-[64px] lg:w-[214px] lg:text-xl" | ||
| > | ||
| {addComment.isPending ? "등록 중..." : "등록하기"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
등록중 .. 대신 dotlaodingSpinner 적용해도 좋겠네요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵
| }); | ||
| }, | ||
| onCancel: () => { | ||
| openModal("customForm", { isOpen: false, title: "", content: "", onConfirm: () => {}, onCancel: () => {} }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
모달 onCancel에는 모달에 대한 정보를 줄 필요없이 모든 모달이 닫히는 로직으로 대체해도 좋을거같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추후에 가능하면 리팩토링 해보면 좋겠습니다 ㅎㅎ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 요건 다음주 리팩토링 기간에 해볼께요.
| <div className="hidden space-x-1 font-semibold md:flex md:space-x-2 lg:space-x-4"> | ||
| <Button | ||
| variant="solid" | ||
| className="bg-grayscale-100 text-grayscale-50 hover:bg-grayscale-200 md:h-[46px] md:w-[108px] md:text-[14px] lg:h-[58px] lg:w-[180px] lg:text-[18px]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Button 컴포넌트에 별도 스타일 지정하지않고 color prop 을 gray 또는 orange 로 주시면 됩니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵
| }, | ||
| }); | ||
| } else { | ||
| toast.error("댓글 삭제 중 오류가 발���했습니다.", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗 한글이 깨져서 수정 부탁드립니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵
hongggyelim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
yyezzzy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
알바토크까지 고생하셨습니다 !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요 페이지는 리펙토링때 코드를 더 클린하게 하면 좋을 것 같네요 !
알바 토크
알바폼
게시글 수정하기