Skip to content

Conversation

@jeschun
Copy link
Contributor

@jeschun jeschun commented Oct 3, 2025

📝 작업 개요 (필수)

공통 모달 규격 통일(타이틀 간격, ESC/딤 클릭 닫힘, Portal 옵션, 스토리 문구 통일).

✨ 작업 내용 (필수)

  • 기능 구현
  • 버그 수정
  • 스타일/UI 변경
  • 리팩토링
  • 최적화/성능개선
  • 문서 업데이트
  • 기타 변경사항

📸 스크린샷

🧐 해결해야 하는 문제

🤔 리뷰어 확인 필요 사항

🔗 관련 이슈

  • Closes #이슈 번호
  • Related to #이슈 번호

🛠️ 후속 작업

  • [ ]
  • [ ]

✅ 체크리스트 (필수)

  • 작업한 내용과 커밋 메시지 컨벤션을 통일했는지 확인
  • 내가 작성한 코드를 테스트까지 완료했는지 잘 작동했는지 확인
  • ESLint 검사 통과
  • Prettier 포맷팅 적용
  • TypeScript 에러 없음
  • 빌드 에러 없음

@jeschun jeschun self-assigned this Oct 3, 2025
@jeschun jeschun added the ✨ feat 새로운 기능 추가 label Oct 3, 2025
@jeschun jeschun added this to The-julge Oct 3, 2025
@vercel
Copy link

vercel bot commented Oct 3, 2025

@jeschun is attempting to deploy a commit to the projects Team on Vercel.

A member of the Team first needs to authorize it.

@jeschun jeschun moved this to In review in The-julge Oct 3, 2025
@jeschun jeschun linked an issue Oct 3, 2025 that may be closed by this pull request
2 tasks
@vercel
Copy link

vercel bot commented Oct 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
thejulge Ready Ready Preview Comment Oct 3, 2025 5:31pm

Copy link
Contributor

@sohyun0 sohyun0 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 코멘트 확인부탁드립니다 ~~! :)

{/* Footer (버튼)*/}
{/* Footer */}
<div className='flex items-center justify-center gap-3 px-6 pb-6 pt-6'>
{secondaryText && (
Copy link
Contributor

Choose a reason for hiding this comment

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

현재 secondary 버튼은 text 유무만 체크해서 버튼을 보여주고 있는데요! onSecondary 와 함께 관리되는것이 좋을 것 같습니다!

이유 : secondaryText 만 작성하고 onSecondary 를 작성하지 않았을때 버튼은 노출되지만 액션실행이 되지 않는데요 만약 일단 생성만 해두고 액션은 다음에 만든다라고 했을때 이 로직을 기억하지 않는다면 이미 완성된 버튼으로 착각할 수도 있을것을 방지할 수 있습니다!

secondaryText && onSecondary && 로 작성시 둘다 입력해야 정상 노출 + 정상 실행 될 수 있다는 것을 알 수 있게 하는게 DX 관점에서 조금더 좋지않을까 생각합니다! :)

className,
}: ModalProps) {
// ESC로 닫기
useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

이부분을 추후 커스텀 훅으로 뺼수도 있을것 같아요! (제안)
만약 그렇게 분리를 한다면 dimmed 을 사용하지않는 필터나 알림에서도 응용이 가능할것 같습니다 !

)}
>
{/* Header (아이콘, 제목) */}
{/* Header */}
Copy link
Contributor

Choose a reason for hiding this comment

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

모달의 경우 header / body / footer 로 컴포넌트 분리도 해볼 수 있을것 같습니다 (제안)

@jeschun jeschun closed this Oct 4, 2025
@github-project-automation github-project-automation bot moved this from In review to Done in The-julge Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feat 새로운 기능 추가

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature] 공통 컴포넌트- 모달

2 participants