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

#712 이용약관 모달에서 개인정보 처리방침 모달 띄울 수 있도록 수정 #721

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

14KGun
Copy link
Member

@14KGun 14KGun commented Feb 9, 2024

Summary

It closes #712

#712 버그를 해결합니다.

마이페이지에서 url 을 통해 이용약관 모달을 띄울 수 있습니다.

@14KGun 14KGun self-assigned this Feb 9, 2024
@14KGun 14KGun linked an issue Feb 9, 2024 that may be closed by this pull request
Copy link

netlify bot commented Feb 9, 2024

Deploy Preview for taxi-dev-preview failed.

Name Link
🔨 Latest commit 1cf1ed0
🔍 Latest deploy log https://app.netlify.com/sites/taxi-dev-preview/deploys/65c5db61c7e5f10008fd0344

@@ -31,35 +32,17 @@ const Mypage = () => {
const loginInfo = useValueRecoilState("loginInfo");
const notificationOptions = useValueRecoilState("notificationOptions");
const { id: userId } = loginInfo || {};
const { page } = useParams<{ page?: string }>();
Copy link
Member

Choose a reason for hiding this comment

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

path param을 직접 가져와서 routing 로직을 아래처럼 직접 작성하는 것보다는 nested route와 <Outlet />을 이용하는게 더 낫지 않을까요?

Comment on lines +38 to +40
const closeModal = useCallback(() => {
history.push("/mypage");
}, []);
Copy link
Member

Choose a reason for hiding this comment

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

이부분 useCallback으로 감싸는 것이 필요한가요?
그리고 만약 감싼다면 dependency array에 history도 들어가야 할 듯 합니다.

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

Successfully merging this pull request may close these issues.

[Bug] 개인정보 처리방침 링크 연결
2 participants