Skip to content

Conversation

@cccwon2
Copy link
Contributor

@cccwon2 cccwon2 commented Dec 13, 2024

알바 토크

  1. 커스텀 훅 분리
  2. 알바 토크 관련 컴포넌트 리팩토링
  3. 알바 토크 > 게시글 수정하기 별도 페이지로 분리

알바폼

  1. 알바폼 > 상세조회 route 파일 accessToken 여부 처리 로직 추가

게시글 수정하기

스크린샷 2024-12-13 230317

@cccwon2 cccwon2 added the 🔨 Refactor 코드 리팩토링 label Dec 13, 2024
@cccwon2 cccwon2 self-assigned this Dec 13, 2024
@github-actions
Copy link

github-actions bot commented Dec 13, 2024

💄 Storybook: https://673dcf13c9a3a1189a7c6fd4-gmytunjkia.chromatic.com/ # Chromatic에서 생성된 Storybook URL
🕖 Update: 2024년 12월 13일 23시 18분 31초 # 현재 시간

import apiClient from "@/lib/apiClient";

// 알바폼 상세 조회(로그인 안한 유저도 조회 가능)
// 알바폼 상세 조회(로그인 여부에 따라 다른 응답)
Copy link
Collaborator

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">
Copy link
Collaborator

Choose a reason for hiding this comment

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

app/layout 에 main태그가 있어서 여기는 div로 유지하시죠! (또는 한번 감싸는 태그가 없어도 될 거 같아요)

Copy link
Contributor Author

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 ? "등록 중..." : "등록하기"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

등록중 .. 대신 dotlaodingSpinner 적용해도 좋겠네요

Copy link
Contributor Author

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: () => {} });
Copy link
Collaborator

Choose a reason for hiding this comment

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

모달 onCancel에는 모달에 대한 정보를 줄 필요없이 모든 모달이 닫히는 로직으로 대체해도 좋을거같아요

Copy link
Collaborator

Choose a reason for hiding this comment

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

추후에 가능하면 리팩토링 해보면 좋겠습니다 ㅎㅎ

Copy link
Contributor Author

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]"
Copy link
Collaborator

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 로 주시면 됩니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

},
});
} else {
toast.error("댓글 삭제 중 오류가 발���했습니다.", {
Copy link
Collaborator

Choose a reason for hiding this comment

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

앗 한글이 깨져서 수정 부탁드립니다

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@hongggyelim hongggyelim left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

Copy link
Collaborator

@yyezzzy yyezzzy left a comment

Choose a reason for hiding this comment

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

알바토크까지 고생하셨습니다 !

Copy link
Collaborator

Choose a reason for hiding this comment

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

요 페이지는 리펙토링때 코드를 더 클린하게 하면 좋을 것 같네요 !

@yyezzzy yyezzzy merged commit 435ce13 into dev Dec 14, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 Refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants