-
Notifications
You must be signed in to change notification settings - Fork 3
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
이미지에 에러나거나 로드 안될 시 기본 이미지 렌더링 #210
base: develop
Are you sure you want to change the base?
이미지에 에러나거나 로드 안될 시 기본 이미지 렌더링 #210
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.
구웃~
fallbackStrategy={'onError' || 'beforeLoadOrError'} | ||
fallbackSrc={DEFAULT_IMAGE} |
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.
오호 chakra image props에 이런 게 있었구나 👍
export const DEFAULT_IMAGE = '/images/default-restaurant.svg'; | ||
|
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;
foodParty.ts에 DEFAULT_IMAGE라고 하면, 밥모임에 대한 기본이미지라고 오해할 수도 있을 거 같아요!
가게에 대한 이미지가 없을 때 보여주는 이미지 맞죠? 조금 더 구체적인 변수명으로 설정하는 건 어떨까요?
ex) DEFAULT_RESTAURANT_IMAGE
📖 구현 내용
🖼 구현 이미지
✅ PR 포인트 & 궁금한 점