Skip to content

Conversation

@xxinzzi
Copy link
Collaborator

@xxinzzi xxinzzi commented Jan 2, 2025

주요 작업 내용

  • Post/PostImageSelect에 import문, 코드 흐름, 변수 명명 규칙 관련 리팩토링 했습니다.
  • Post/PostUpload에 import문, 코드 흐름, 변수 명명 규칙 관련 리팩토링 했습니다.
  • Post/index에 변수 명명 규칙 적용했습니다.
  • Post 전체에 컬러시스템 적용했습니다.
  • Post 전체에 Icon 컴포넌트 적용했습니다.

기타 작업 내용

  • NotFound에 컬러시스템 적용했습니다.

코드 리뷰 포인트

  • 없음

작업 화면

  • 없음

@xxinzzi xxinzzi self-assigned this Jan 2, 2025
@xxinzzi xxinzzi changed the base branch from main to dev January 2, 2025 07:03
@xxinzzi xxinzzi added the refactor Improve code structure and readability label Jan 2, 2025
Comment on lines +28 to -37
import CommentItem from './CommentItem/index';
import MenuButtonList from './MenuButtonList/index';

import type { Comment, GetCommentListResponse } from '@apis/post-comment/dto';
import type { GetPostLikeListResponse } from '@apis/post-like/dto';
import type { ModalProps } from '@components/Modal/dto';

import type { LikeCommentBottomSheetProps } from '../dto';

import CommentItem from './CommentItem/index';
import MenuButtonList from './MenuButtonList/index';

Copy link
Collaborator

Choose a reason for hiding this comment

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

저희가 정한 import문 규칙 상 상대경로가 아래로 가는 것이 맞습니다! 린트 적용해서 수정 부탁드립니당

import Left from '@assets/arrow/left.svg';
import LikeFill from '@assets/default/like-fill.svg';
import Like from '@assets/default/like.svg';
import Like from '@components/Icons/Like';
Copy link
Collaborator

Choose a reason for hiding this comment

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

이 부분 외에도 린트를 적용해 수정해야 하는 부분들이 보입니다! 전체적인 점검 부탁드립니닷

Copy link
Collaborator

Choose a reason for hiding this comment

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

함수 정의 사이에 ref 변수가 있습니다 순서 조정 부탁드려용

Comment on lines -40 to +41
const userId = getCurrentUserId();
const navigate = useNavigate();
const userId = getCurrentUserId();
Copy link
Collaborator

Choose a reason for hiding this comment

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

저는 상단의 user와 postId도 이 단락에 묶이는 것이 더 자연스럽게 읽힐 것 같다는 생각이 드는데 어떠신가용? 생각하신 다른 흐름이 있다면 이대로 유지해도 괜찮습니다!

Copy link
Collaborator

Choose a reason for hiding this comment

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

또한 userId를 getCurrentUserId에서 받아오면서 이미 userId의 타입이 number인데 아래에 형변환하는 로직이 그대로 남아 있습니다! 수정 부탁드리고, 전체적인 코드에서 userId를 currentUserId로 변경하는 것도 고민해 주시면 좋을 것 같습니다! myId나 currentUserId 등 단순히 userId를 사용하지 않았던 이유가 현재 사용자의 id인지 다른 사용자의 id인지 명확하게 구분하기 위함이었던 데다가, getCurrentUserId 함수에서 받아오는 만큼 currentUserId가 더 적합하다는 생각이 들어서요!

@gustn99 gustn99 merged commit 0054a53 into dev Jan 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Improve code structure and readability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants