-
Notifications
You must be signed in to change notification settings - Fork 1
♻️ [Refactor] 중간 발표 이전 리팩토링 #186
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
The head ref may contain hidden characters: "185-refactor-\uC911\uAC04-\uBC1C\uD45C-\uC774\uC804-\uB9AC\uD329\uD1A0\uB9C1"
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
wynter24
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
| import { useState } from 'react'; | ||
| import { useRouter } from 'next/navigation'; | ||
|
|
||
| export const usePopup = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 훅을 모든 도메인에서 사용할 수있게 개선해보면 어떨까요?
club-create에서만 쓸 수 있는데, 다른 곳에서도 사용할 수 있게 개선하면 좋을 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const popup = usePopup();
// 선언적으로 만들어주기
const successPopup = popup.open( (open, close ) => <컴포넌트 open={open} close={close} />
#️⃣연관된 이슈
📝작업 내용
미리보기, 사용방법 및 결과물
기타 참고사항