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

[FE] 송금 페이지 url에 멤버 id 보이지 않게 변경 #875

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

Conversation

jinhokim98
Copy link
Contributor

issue

구현 사항

송금 페이지 url에 멤버 id 사용하지 않게 하여 page directory depth 감소

멤버 id를 넣은 의도는 참여자 별로 송금 페이지를 보여주고 싶어서 였습니다. 하지만 이 정보가 필수가 아님을 깨닫고 이를 지워도 충분히 참여자 별로 송금 페이지를 보여줄 수 있다는 것을 알게 되어서 멤버 id를 url에서 제거했습니다.

이제 ${EVENT_WITH_EVENT_ID}/home/send/:memberId 에서 ${EVENT_WITH_EVENT_ID}/home/send/로 변화합니다.

🫡 참고사항

@jinhokim98 jinhokim98 added 🖥️ FE Frontend 🚧 refactor refactoring labels Dec 22, 2024
@jinhokim98 jinhokim98 added this to the v3.1.0 milestone Dec 22, 2024
@jinhokim98 jinhokim98 self-assigned this Dec 22, 2024
@jinhokim98 jinhokim98 linked an issue Dec 22, 2024 that may be closed by this pull request
1 task
Copy link

Copy link
Contributor

@pakxe pakxe left a 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'));
Copy link
Contributor

Choose a reason for hiding this comment

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

오우 경로가 깔끔해졌네요

Copy link
Contributor Author

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`,
Copy link
Contributor

Choose a reason for hiding this comment

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

송금이라는 의미를 담은 이름으로 바꾸는 것도 좋을 것 같아용

Copy link
Contributor Author

Choose a reason for hiding this comment

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

send가 송금이라는 의미로 안 와닿았을까요? 어떤 이름이 더 좋을 것 같나요?

@jinhokim98
Copy link
Contributor Author

url에 직접 입력하는 경우는 아래 사진처럼 나와요!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥️ FE Frontend 🚧 refactor refactoring
Projects
Status: 🤼 In Review
Development

Successfully merging this pull request may close these issues.

[FE] 송금 페이지 url에 멤버 id 보이지 않게 변경
2 participants