Skip to content

refactor: [TA-186] Header 컴포넌트 Compound Component 패턴 전환#97

Merged
seorinn merged 5 commits into
developfrom
TA-186-header-compound-component
May 11, 2026
Merged

refactor: [TA-186] Header 컴포넌트 Compound Component 패턴 전환#97
seorinn merged 5 commits into
developfrom
TA-186-header-compound-component

Conversation

@seorinn

@seorinn seorinn commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Header 컴포넌트를 main/left/right props 방식에서 Compound Component 패턴으로 리팩토링
  • Header.Left, Header.Center, Header.Right 서브컴포넌트 추가 (각각 React.ReactNode children 수용)
  • any 타입 제거 → 타입 안전성 확보
  • 사용처 3곳 업데이트: EventHome, MainHome, PhotographersHome
  • MainHomemain={null} 제거 — Center를 사용하지 않으면 생략 가능

Test plan

  • 메인 홈 헤더 (로고 + 검색/마이페이지 아이콘) 정상 표시
  • 이벤트 홈 헤더 (뒤로가기 + 제목 + 검색 아이콘) 정상 표시
  • 작가 홈 헤더 (뒤로가기 + 제목 + 검색 아이콘) 정상 표시

Closes #21

@vercel

vercel Bot commented May 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
damaba Ready Ready Preview, Comment May 11, 2026 7:13am

@seorinn seorinn marked this pull request as ready for review May 11, 2026 07:14
@seorinn seorinn merged commit 91a5a4f into develop May 11, 2026
3 checks passed
@seorinn seorinn deleted the TA-186-header-compound-component branch May 11, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Header 컴포넌트 Compound Component 패턴 적용

1 participant