-
Notifications
You must be signed in to change notification settings - Fork 21
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
[나지원] sprint10 #128
The head ref may contain hidden characters: "Next-\uB098\uC9C0\uC6D0-sprint10"
[나지원] sprint10 #128
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
지원님 이번 스프린트 미션 고생하셨습니다.
} | ||
|
||
const AuthorInfo = ({ className, nickname, image, date }: Props) => { | ||
const AuthorInfo = ({ nickname, date, className, image }: Props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3:
const AuthorInfo = ({ nickname, date, className, image }: Props) => { | |
const AuthorInfo = ({ nickname, date, className ='' , image }: Props) => { |
const allowedTypes = ["image/png", "image/jpeg"]; | ||
if (!allowedTypes.includes(nextValue.type)) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3:
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사용자 피드백까지 주면 더 좋을 것 같아요~
const HeartButton = ({ favoriteCount, className }: HeartButtonProps) => { | ||
return ( | ||
<button | ||
type="button" | ||
aria-label="좋아요 버튼" | ||
className={`${styles.heartButton} ${className}`} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3:
아직 필요하지 않으셔서 추가하지 않은 것 같지만 버튼이니 나중에 onClick 함수를 넘길 수 있게 추가해주세요~
}, [refreshAccessToken]); | ||
|
||
return ( | ||
<AuthContext.Provider value={{ accessToken, login, logout }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2:
멘토링때 말씀드린것처럼 context 사용시 전달되는 value는 자식들의 잦은 리렌더링을 막기위해 useMemo를 감싸 전달합니다.
관련해서 읽으실만한 글 링크드립니다~
요구사항
기본
상품 등록 페이지
상품 상세 페이지
심화
스크린샷
배포 페이지: https://najimarket.vercel.app/boards
상품 등록 페이지
상품 상세 페이지
멘토에게