[#74] Feat/공통컴포넌트 새로고침#78
Merged
eunkyung01 merged 4 commits intomainfrom Feb 14, 2025
Hidden character warning
The head ref may contain hidden characters: "feat/\uacf5\ud1b5\ucef4\ud3ec\ub10c\ud2b8_\uc0c8\ub85c\uace0\uce68"
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#️⃣ Issue
📝 Description
fetch실패시 에러메세지 대신, 해당 컴포넌트의 데이터 fetch를 다시 시도할 수 있도록
새로고침 버튼을 보여주는 컴포넌트를 제작했습니다!
필수 prop으로
handleLoad에 데이터를 fetch하는 함수를 연결해주셔야합니다.선택적 prop으로는 디자인을 커스텀할 수 있도록
className을string으로 전달해줄 수 있도록 했습니다.boxStyle?: string;요소가 차지할 면적이나 박스 스타일을 className으로 전달할 수 있습니다.
gap을 주면 버튼과 글씨 사이의 간격 조정이 가능합니다.
기본값은 'gap-[10px]'입니다.
iconSize?: string;아이콘 사이즈를 className으로 전달할 수 있습니다.
기본값은 'h-[136px] w-[136px]' 설정되어 있습니다.
iconTextGap?: string;gap을 주면 아이콘과 글씨 사이의 간격 조정이 가능합니다.
기본값은 'gap-[10px]'입니다.
buttonStyle?: string;버튼의 px값과 py값을 className으로 전달해줄 수 있습니다.
기본값은 'px-[30px] py-[10px]'입니다.
현재

내프로필페이지에 적용상태입니다.요청 api주소가 이상하거나 fetch 실패시 아래처럼 뜹니다!
src/app/(with-header)/myprofile/_components/MyReviewListContainer.tsx에서
getMyReview함수에서 fetch하고 있는 주소를 잘못된 주소로 하면 잘 보입니다.다양한 디자인이 보고싶으시다면 해당 MyReviewListContainer에서
에러처리하는 부분에 적용해보세요!
🌀 PR Type
어떤 변경 사항이 있나요?
✅ Checklist
PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
Test Checklist
Additional Notes