-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FE] chore: 불필요한 이미지,컴포넌트 삭제 #692
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.
확인했습니다!
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.
성능 측정할 때 불필요한 이미지도 포함한 데이터로 나와있겠네요... 개선 수치는 엇비슷하겠지만서도... 미안합니다 😥😥
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.
이미지 최적화하면서 불필요한 이미지가 추가되었나 보네요..ㅠㅠㅠ
고생했어요 바다!
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.
수정사항에 대한 코멘트 남겼습니다!
import { useGroupAccessCode } from '@/hooks'; | ||
|
||
import { DetailedReviewPageContents } from './components'; | ||
|
||
const DetailedReviewPage = () => { | ||
const { groupAccessCode } = useGroupAccessCode(); | ||
|
||
if (!groupAccessCode) return <LoginRedirectModal />; | ||
if (!groupAccessCode) 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.
undefined
를 반환하지 않고, null
을 명시적으로 반환하도록 하는 것이 좋을 것 같아요.
if (!groupAccessCode) return; | |
if (!groupAccessCode) return null; |
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.
해당 부분은 쿠키 적용한 리뷰 상세페이지 pr이 있어서 해당 pr 머지 후 pull 받을 거라 임시로 고쳤어요
@@ -32,12 +32,10 @@ const ReviewListPage = () => { | |||
|
|||
return ( | |||
<> | |||
{groupAccessCode && storedReviewRequestCode ? ( | |||
{groupAccessCode && storedReviewRequestCode && ( |
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.
추후에 조건문 부분을 변수로 빼도 좋을 것 같네요
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.
해당 부분은 목록 페이에 쿠키가 적용된 pr에 올라가 있어서, 해당 pr 머지 후 pull 받을 거라 임시로 고쳤어요
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.
확인했습니다!
🚀 어떤 기능을 구현했나요 ?
📚 참고 자료, 할 말