Skip to content
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

Merged
merged 9 commits into from
Sep 26, 2024

Conversation

BadaHertz52
Copy link
Contributor

@BadaHertz52 BadaHertz52 commented Sep 25, 2024


🚀 어떤 기능을 구현했나요 ?

  • 사용하지 않는 이미지,컴포넌트 파일들을 삭제했어요.

📚 참고 자료, 할 말

  • 필요없는 것들은 바로 바로 삭제하자

@BadaHertz52 BadaHertz52 added this to the 5차 스프린트 milestone Sep 25, 2024
@BadaHertz52 BadaHertz52 self-assigned this Sep 25, 2024
@BadaHertz52 BadaHertz52 linked an issue Sep 25, 2024 that may be closed by this pull request
Copy link
Contributor

@chysis chysis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다!

Copy link
Contributor

@ImxYJL ImxYJL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

성능 측정할 때 불필요한 이미지도 포함한 데이터로 나와있겠네요... 개선 수치는 엇비슷하겠지만서도... 미안합니다 😥😥

Copy link
Contributor

@soosoo22 soosoo22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이미지 최적화하면서 불필요한 이미지가 추가되었나 보네요..ㅠㅠㅠ
고생했어요 바다!

@BadaHertz52 BadaHertz52 changed the title [FE] chore: 불필요한 홈 캐러셀 이미지 삭제 [FE] chore: 불필요한 이미지,컴포넌트 삭제 Sep 26, 2024
Copy link
Contributor

@chysis chysis left a 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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined를 반환하지 않고, null을 명시적으로 반환하도록 하는 것이 좋을 것 같아요.

Suggested change
if (!groupAccessCode) return;
if (!groupAccessCode) return null;

Copy link
Contributor Author

@BadaHertz52 BadaHertz52 Sep 26, 2024

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 && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

추후에 조건문 부분을 변수로 빼도 좋을 것 같네요

Copy link
Contributor Author

@BadaHertz52 BadaHertz52 Sep 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 부분은 목록 페이에 쿠키가 적용된 pr에 올라가 있어서, 해당 pr 머지 후 pull 받을 거라 임시로 고쳤어요

Copy link
Contributor

@chysis chysis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다!

@BadaHertz52 BadaHertz52 merged commit d5c43e9 into develop Sep 26, 2024
2 checks passed
@BadaHertz52 BadaHertz52 deleted the fe/chore/691-home_carousel_image branch September 26, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[FE] 불필요한 홈 페이지 캐러셀 이미지 삭제
4 participants