Skip to content

Conversation

@ghdtnals
Copy link
Collaborator

@ghdtnals ghdtnals commented Apr 28, 2025

#️⃣연관된 이슈

ex) #이슈번호, #이슈번호
Closes #31

📝 PR 유형

해당하는 유형에 'x'로 체크해주세요.

  • 기능 추가 (Feature)
  • 버그 수정 (Bug Fix)
  • 코드 개선 (Refactoring)
  • 스타일 변경 (UI/UX)
  • 문서 작업 (Documentation)
  • 환경 설정 (Configuration)
  • 기타 (Other)

📝작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능)

스크린샷 (선택)

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

@ghdtnals ghdtnals requested review from cozy-ito and removed request for jeonghwanJay April 28, 2025 05:50
@netlify
Copy link

netlify bot commented Apr 28, 2025

Deploy Preview for thejulge1 ready!

Name Link
🔨 Latest commit cf8d6ed
🔍 Latest deploy log https://app.netlify.com/sites/thejulge1/deploys/680f831a29e1020008ed85e4
😎 Deploy Preview https://deploy-preview-43--thejulge1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ghdtnals ghdtnals added the Feature (기능 추가) 기능을 추가합니다. label Apr 28, 2025
Copy link
Collaborator

@cozy-ito cozy-ito left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 👍

Comment on lines 7 to 15
const getPayRateText = (hourlyPay?: number, originalPay?: number): string => {
if (hourlyPay === undefined || originalPay === undefined) {
return "";
}

const rawRate = ((hourlyPay - originalPay) / originalPay) * 100;
const displayRate = Math.min(Math.round(rawRate), 100);
return `기존 시급보다 ${displayRate}%`;
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Post 컴포넌트에도 거의 유사항 로직이 있었는데, 해당 로직을 util 함수로 분리해서 재사용하면 어떨까요? 🤔

Comment on lines 3 to 5
import IconLocation from "@/assets/icon/location.svg?react";
import IconTime from "@/assets/icon/time.svg?react";
import IconArrow from "@/assets/icon/arrow-up.svg?react";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
import IconLocation from "@/assets/icon/location.svg?react";
import IconTime from "@/assets/icon/time.svg?react";
import IconArrow from "@/assets/icon/arrow-up.svg?react";
import { Location, Time, ArrowUp } from "@/assets/icon";

수빈님께서 일괄 export를 해주셔서 위 처럼 아이콘을 사용할 수 있어요! 👍

{description}
</p>
</div>
{children && <div className="flex gap-2 mt-3">{children}</div>}
Copy link
Collaborator

Choose a reason for hiding this comment

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

children prop에는 어떤 내용이 들어가면 되는건지 잘 모르겠어요 하핳 😅
코드를 천천히 살펴보니 버튼 요소가 들어가야 할 것 같긴 하네요! 🤔

PostCard 컴포넌트가 자식 요소로 가져갈 수 있는 것은 많은데,
이미 많은 부분을 위의 코드로 구체화하고 계셔서 어떤 요소가 children으로 전달되어야 할 지 직관적이지 않은 것 같아요 🥲

Copy link
Collaborator Author

@ghdtnals ghdtnals Apr 28, 2025

Choose a reason for hiding this comment

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

코드 꼼꼼하게 리뷰해주셔서 감사합니다!😊 말씀해주신 부분들 참고하여 코드를 개선해보도록 하겠습니다!!

Copy link
Collaborator

@almighty55555 almighty55555 left a comment

Choose a reason for hiding this comment

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

성진님께서 남겨주신 리뷰가 너무 좋네요! 다 잘 적용되어서 좋은 것 같습니다. 수고하셨습니다~

@ghdtnals ghdtnals merged commit 531efe1 into dev Apr 29, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature (기능 추가) 기능을 추가합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

공통 컴포넌트 구현 (PostCard)

4 participants