-
Notifications
You must be signed in to change notification settings - Fork 1
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
[소그룹스터디] routes를 static으로 관리 #382
Conversation
src/static/routes.ts
Outdated
OwnerOrderManagement: () => '/owner/order-management', | ||
OwnerSalesmanagement: () => '/owner/sales-management', | ||
OwnerEvent: ({ id, isLink }: ROUTESParams<'id'>) => (isLink ? `/owner/event-add/${id}` : '/owner/event-add/:id'), | ||
OwnerEventModify: ({ id, isLink }: ROUTESParams<'id'>) => (isLink ? `/owner/event-modify/${id}` : '/owner/event-modify/:id'), | ||
Login: () => '/login', | ||
Signup: () => '/signup', |
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.
소소하지만 /
구분과 -
구분이 전부 대문자로 통일되어서 헷갈리기 쉽겠다 싶은데,
/
구분을 객체로 넣어서 담는건 어떨까요?? 실제로 /
는 레포지토리 뎁스를 의미하니, 코드를 사용할때도 같은 느낌으로 사용할 수 있을 것 같아욥
소소하게 salesManagement만 중간에 대문자가 빠지기도 했구요!
Owner: {
OrderManagement: () => `/owner/order-management`,
SalesManagement: () => `/owner/sales-management`,
}
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.
좋은 방법인 것 같아요! 반영했습니다. 54691a6
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.
고생하셨어용 🙇
What is this PR? 🔍
Changes 📝
static
폴더 내의routes.ts
에서 모든 경로를 관리하는 것으로 변경하였습니다.ScreenShot 📷
Test CheckList ✅
Precaution
✔️ Please check if the PR fulfills these requirements
develop
branch unconditionally?main
?yarn lint