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

Feature/modal #10

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Feature/modal #10

wants to merge 5 commits into from

Conversation

rkdtmddnjs97
Copy link

@rkdtmddnjs97 rkdtmddnjs97 commented Feb 17, 2025

#️⃣ 관련 이슈

#9

📝 이슈 내용

모달 구현하기

🛠️ PR 유형

어떤 변경 사항이 있나요?

  • 버그 수정
  • 새로운 기능 추가
  • 사용자 UI 디자인 변경
  • 코드 리팩토링
  • 테스트 추가
  • 기타 (내용을 적어주세요) :

📸스크린샷 (선택)

image
image
image

💬 To Reviewer

구조가 괜찮은지 봐주셨으면 좋겠습니다

✅ PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 로컬 빌드가 정상적으로 실행되었습니다.
  • PR 작업에 대한 테스트를 완료하였습니다. (버그 수정/기능에 대한 테스트)

Copy link
Member

@KoJaem KoJaem left a comment

Choose a reason for hiding this comment

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

작업 고생하셨습니다! 🙇‍♂️

짜잘한 내용이긴한데, 시간되실때 comment 한번 확인 부탁드립니다!

package.json Outdated
@@ -18,6 +18,7 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sonner": "^1.7.4",
"react-icons": "^5.4.0",
Copy link
Member

Choose a reason for hiding this comment

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

@rkdtmddnjs97

아이콘은 나중에 @haedawn 님이 만들어주신거를 한번에 적용하기로 하고,

그전까지는 이전에 설치된 lucide-react 를 사용하는것도 좋을 것 같습니다!

Copy link
Author

Choose a reason for hiding this comment

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

아 이게 있었군요 고치겠습니다

</div>
<div className="flex items-center justify-end">
<Button className="h-[40px] w-[148px] bg-gray-scale-700 p-0">
<p className="text-h1-m text-gray-100">완료</p>
Copy link
Member

Choose a reason for hiding this comment

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

@rkdtmddnjs97

gray 대신 gray-scale 로 사용해주시면 좋을 것 같습니다!

Copy link
Author

Choose a reason for hiding this comment

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

아 이거 깜빡했네요

<>
<div className="mt-[28px] flex flex-col gap-[40px]">
<Button className="w-[148px] bg-gray-scale-700 px-[24px] py-[10px] text-primary-300">
<div className="flex items-center gap-[20px] text-h3-sb" onClick={() => onCreate()}>
Copy link
Member

Choose a reason for hiding this comment

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

@rkdtmddnjs97

onCreate 타입이 () => void 이므로,

onClick={onCreate} 로 지정해주셔도 될 것 같습니다!

Copy link
Author

Choose a reason for hiding this comment

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

인정합니다

return (
<>
<div className="mt-[28px] flex flex-col gap-[40px]">
<Button className="w-[148px] bg-gray-scale-700 px-[24px] py-[10px] text-primary-300">
Copy link
Member

Choose a reason for hiding this comment

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

@rkdtmddnjs97

py-[8px] or py-[12px]로 바꿔주시면 좋을 것 같아요!

</div>
</Button>
<div>
<div className="border-b-[1px] border-gray-scale-700 px-[8px] py-[8px]">기본</div>
Copy link
Member

Choose a reason for hiding this comment

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

@rkdtmddnjs97

px-[8px] py-[8px] -> p-[8px]

const [isCreateMode, setIsCreateMode] = useState(false)

return (
<div className="flex min-h-[600px] w-[720px] flex-col gap-[32px] rounded-lg bg-gray-scale-800 stroke-primary-300 stroke-[1px] px-[24px] py-[36px]">
Copy link
Member

Choose a reason for hiding this comment

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

@rkdtmddnjs97

  1. roundedpixel 을 명시해주기로 했으니 rounded-lg 대신에 Figma 값으로 설정 부탁드립니다! 🙇‍♂️

  2. div 에는 stroke 속성이 아닌, border 속성을 사용해야 하는걸로 알고있는데, 확인 부탁드려도 될까요?

stroke 는 HTML 요소에 적용이 안되는걸로 알고있는데 확인 한번 부탁드립니다!

Copy link
Author

Choose a reason for hiding this comment

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

아 figma 그대로 디자인넣다보니 stroke를 넣었군요 어쩐지 안되더라고요... 나중에 고칠려고 했는데 알려주셔서 감사합니다

<IoMdClose />
</div>
</div>
<div className="flex flex-1 gap-6">
Copy link
Member

Choose a reason for hiding this comment

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

gap-6 -> gap-[_px]

Copy link
Author

Choose a reason for hiding this comment

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

이것도 누락됬었네요

</div>
</div>
<div className="flex flex-1 gap-6">
<div className="w-64 flex-1 rounded-xl bg-black"></div>
Copy link
Member

Choose a reason for hiding this comment

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

w-64 -> w-[_px]


export default function ConfirmModal({ children, onCancel, onConfirm }: Props) {
return (
<div className="flex flex-col gap-[56px] rounded-lg bg-gray-scale-800 stroke-primary-300 stroke-[1px] px-[38px] py-[44px] text-center">
Copy link
Member

Choose a reason for hiding this comment

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

@rkdtmddnjs97

CollectionModal 에 달아놓은 댓글과 동일한 내용 확인 부탁드립니다!

Copy link
Author

Choose a reason for hiding this comment

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

네 확인이요

Copy link
Member

Choose a reason for hiding this comment

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

@rkdtmddnjs97

해당 페이지 text 에 설정한 내용들 디자인 시스템 적용 부탁드립니다!

테스트 페이지라 임의로 사용하신거면 무시하셔도 됩니다. 🙇‍♂️

Copy link
Author

Choose a reason for hiding this comment

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

임의 사용이라 무시해도 될 것 같아요 어차피 쓸 일이 없는 버튼이라

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants