게시글 상세 기능 및 공용 레이아웃 수정 #44
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
관련 이슈 번호
#40
핵심 변경 사항 및 이유
이외 기타 변경 사항
게시글 상세 페이지(
PostDetail.tsx) 서버 컴포넌트로 전환 및 ViewModel 적용useState및useEffect를 제거하고,async/await를 활용하여 서버에서 직접 데이터 패칭useParams()로 ID를 가져오던 방식 →params를 직접 props로 전달하는 방식으로 변경formatToLocaleDate가 더 이상PostDetail컴포넌트에서 호출되지 않고,mapPostToViewModel을 통해 한 단계 추상화된 구조로 변경게시글 상세 페이지(
page.tsx) UI 개선Button컴포넌트 사용)mx-8 flex gap-2등)홈페이지(
page.tsx) 버튼 및 레이아웃 개선mx-8) 추가<PostInfiniteScroll>을 감싸는div추가공용 레이아웃 스타일 조정 (
layout.tsx)<main>에max-w-4xl p-6추가하여 중앙 정렬 및 가독성 개선lang="en"→lang="ko"로 변경페이지 및 게시글 컴포넌트 UI 스타일 수정
app/page.tsxapp/posts/[id]/page.tsx)post-detail.tsxpost-form.tsx)불필요한 태그 및 속성 정리
app/posts/edit/[id]/page.tsxapp/posts/write/page.tsx)post-detail.tsx)PR 시 참고 사항