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

PostFooter 리팩터링 #322

Open
yeolyi opened this issue Mar 1, 2025 · 0 comments
Open

PostFooter 리팩터링 #322

yeolyi opened this issue Mar 1, 2025 · 0 comments

Comments

@yeolyi
Copy link
Collaborator

yeolyi commented Mar 1, 2025

PostType을 받아 내부에서 switch문으로 필요한 값들(편집 페이지 링크, server action 등)은 소식탭쪽 수정사항이 있을 때마다 PostFooter를 수정해야된다는 문제가 있습니다.

따라서 postType이 아닌 필요한 값들을 직접 prop으로 건네주는 식으로 리팩터링합니다.

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

No branches or pull requests

1 participant