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

fix(Dialog): Dialog onClick 이벤트 이슈 수정 #145

Merged
merged 8 commits into from
Sep 24, 2024

Conversation

Brokyeom
Copy link
Member

@Brokyeom Brokyeom commented Sep 23, 2024

변경사항

  • Dialog 컴포넌트의 onApprove 함수가 정상적으로 작동하지 않는 문제를 해결합니다.

링크

시급한 정도

🏃‍♂️ 보통 : 최대한 빠르게 리뷰 부탁드립니다.

기타 사항

  • 추후에 ui 패키지를 저장하게 되면 자동으로 스토리북에 반영되도록 수정하는게 좋을 것 같아요.(좋은 practice가 있어서 가져올게요)
    • 여기서 하려고 했는데, 브랜치 분리하겠습니다.

AS-IS

다이얼로그온클릭

TO-BE

2024-09-22.3.30.45.mov

Copy link

changeset-bot bot commented Sep 23, 2024

🦋 Changeset detected

Latest commit: e2a00fa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sopt-makers/ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Brokyeom Brokyeom changed the title fix(Dialog, stories): Dialog onClick 이벤트 이슈 수정, 스토리북 패키지가 참조하는 패지키 버전 변경 fix(Dialog): Dialog onClick 이벤트 이슈 수정 Sep 23, 2024
@@ -14,66 +14,56 @@ export default function DialogComponent({
typeOptions,
}: DialogValueProps) {
const onApprove = () => {
typeOptions?.buttonFunction;
typeOptions?.buttonFunction && typeOptions.buttonFunction();
Copy link
Member Author

Choose a reason for hiding this comment

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

변경된 부분

@@ -21,6 +21,7 @@ export const overlay = style({
alignItems: 'center',
justifyContent: 'center',
backgroundColor: theme.colors.backgroundDimmed,
zIndex: 999,
Copy link
Member Author

@Brokyeom Brokyeom Sep 23, 2024

Choose a reason for hiding this comment

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

일단 임의로 넣었는데요, 나중에 mds가 많이 정착되면 zIndex 컨벤션도 만드는게 좋을 것 같습니다.

Copy link
Member

Choose a reason for hiding this comment

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

좋습니다~

@Brokyeom Brokyeom self-assigned this Sep 23, 2024
<CheckBox
checked={checkBoxOptions.checked}
color={checkBoxOptions.color}
label={checkBoxOptions.label}
onChange={checkBoxOptions.onChange}
size={checkBoxOptions.size ?? 'small'}
size={checkBoxOptions.size ?? 'sm'}
Copy link
Member Author

Choose a reason for hiding this comment

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

size spec이 small -> sm 으로 바뀐게 적용이 안되어 수정 해 주었습니다.

@sopt-makers sopt-makers deleted a comment from height bot Sep 23, 2024
Copy link
Member

@suwonthugger suwonthugger left a comment

Choose a reason for hiding this comment

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

문의 사항 빠르게 수정하시느라 고생 많으셨습니다! typeOptions 처럼 사용하는 방식이 생소한데, 신기하네요! 굿굿

@Brokyeom Brokyeom merged commit 71392ea into main Sep 24, 2024
1 check passed
@Brokyeom Brokyeom deleted the fix/dialog-button-function branch September 24, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants