-
Notifications
You must be signed in to change notification settings - Fork 5
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
[FE] 송금 페이지 url에 멤버 id 보이지 않게 변경 #875
base: fe-dev
Are you sure you want to change the base?
Conversation
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.
state를 사용해서 정보를 넘겨주도록 되었나보네요!!
그러면 url을 바로 입력할 경우는 에러가뜰까요?
@@ -15,7 +15,7 @@ const UserEventLogin = lazy(() => import('@pages/event/[eventId]/admin/login/use | |||
const EventLoader = lazy(() => import('@components/Loader/EventLoader')); | |||
const AuthGate = lazy(() => import('@pages/event/[eventId]/admin/AuthGate')); | |||
const EventPage = lazy(() => import('@pages/event/[eventId]/EventPageLayout')); | |||
const SendPage = lazy(() => import('@pages/event/[eventId]/home/send/[memberId]/SendPage')); | |||
const SendPage = lazy(() => import('@pages/event/[eventId]/home/send/SendPage')); |
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.
오우 경로가 깔끔해졌네요
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.
맞아요~ 저번 회의 때 토다리가 제안해줬던 것을 반영해봤어요.
확실히 더 깔끔해진 것 같아요
@@ -14,7 +14,7 @@ export const ROUTER_URLS = { | |||
editAccount: `${EVENT_WITH_EVENT_ID}/admin/edit-account`, | |||
images: `${EVENT_WITH_EVENT_ID}/images`, | |||
addImages: `${EVENT_WITH_EVENT_ID}/admin/add-images`, | |||
send: `${EVENT_WITH_EVENT_ID}/home/send/:memberId`, | |||
send: `${EVENT_WITH_EVENT_ID}/home/send`, |
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.
송금이라는 의미를 담은 이름으로 바꾸는 것도 좋을 것 같아용
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.
send가 송금이라는 의미로 안 와닿았을까요? 어떤 이름이 더 좋을 것 같나요?
issue
구현 사항
송금 페이지 url에 멤버 id 사용하지 않게 하여 page directory depth 감소
멤버 id를 넣은 의도는 참여자 별로 송금 페이지를 보여주고 싶어서 였습니다. 하지만 이 정보가 필수가 아님을 깨닫고 이를 지워도 충분히 참여자 별로 송금 페이지를 보여줄 수 있다는 것을 알게 되어서 멤버 id를 url에서 제거했습니다.
이제
${EVENT_WITH_EVENT_ID}/home/send/:memberId
에서${EVENT_WITH_EVENT_ID}/home/send/
로 변화합니다.🫡 참고사항