-
Notifications
You must be signed in to change notification settings - Fork 0
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
[feat] 어드민 유저 검색 관련 #136
[feat] 어드민 유저 검색 관련 #136
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.
수고하셨습니다.
<Route path="/comments" element={<CommentsPage />} /> | ||
<Route path="/comments/:eventId" element={<CommentsIDPage />} /> |
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.
왜 /comments/:eventId의 순서를 바꾸셨나요?
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.
처음에 /comments의 자식 route로 :eventId를 넣으려 했는데 저희 설계상 맞지 않아서 그냥 뺐는데 그 잔재입니다
const [page, setPage] = useState(1); | ||
const data = useQuery( | ||
"admin-users", | ||
() => | ||
fetchServer( | ||
`/api/v1/admin/event-users?page=${page - 1}&search=${searchString}&field=${category}&size=15`, | ||
`/api/v1/admin/event-users?page=${page - 1}&search=${searchParams.get("search") ?? ""}&field=${searchParams.get("field") ?? "userName"}&size=15`, |
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.
searchParams을 잘 쓰시는군요
📝 작업 내용