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

[Refactor] ExcelButton 공통 컴포넌트 구조 개선 #121

Open
nanafromjeju opened this issue Jan 30, 2025 · 0 comments
Open

[Refactor] ExcelButton 공통 컴포넌트 구조 개선 #121

nanafromjeju opened this issue Jan 30, 2025 · 0 comments
Assignees
Labels
🔨 Refactor 코드 구조 개선 및 리팩토링 작업

Comments

@nanafromjeju
Copy link
Collaborator

🐞 설명

현재 상황

  • ExcelButton 컴포넌트에서 onClick 핸들러를 props로 받아서 사용
  • 페이지마다 동일한 다운로드 로직이 반복되고 있음

컴포넌트 구조 개선

  • ExcelButton 내부로 다운로드 로직 이동
  • 페이지에서 데이터만 전달받는 구조로 변경

로직 분리

  • 엑셀 다운로드 관련 커스텀 훅 생성
  • 페이지별 데이터 변환 로직 분리

/components/common/ExcelButton
/hooks/useExcelDownload

💡 해결 방법

No response

🌏 환경

No response

📝 메모

Image

@nanafromjeju nanafromjeju added the 🔨 Refactor 코드 구조 개선 및 리팩토링 작업 label Jan 30, 2025
@nanafromjeju nanafromjeju added this to the 컴포넌트 수정 milestone Jan 30, 2025
@nanafromjeju nanafromjeju self-assigned this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Refactor 코드 구조 개선 및 리팩토링 작업
Projects
None yet
Development

No branches or pull requests

1 participant