-
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
refactor(member): 활동 2차 QA 피드백 반영 수정 #231
Conversation
🦋 Changeset detectedLatest commit: 8d3640a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
LGTM👍👍
{children} | ||
{name} |
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.
children
말고 name
로 변경한 이유가 있나요?
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.
이전에는 children 으로 p
태그를 받아 파일 명을 넣고 있었는데 props
로 name
을 받아서 단순화 하고자 했어요.
const queryKeys = [ | ||
ACTIVITY_QUERY_KEY.STATUS(ACTIVITY_STATE.END), | ||
ACTIVITY_QUERY_KEY.STATUS(ACTIVITY_STATE.PROGRESSING), | ||
ACTIVITY_QUERY_KEY.STATUS(ACTIVITY_STATE.WAITING), | ||
ACTIVITY_QUERY_KEY.DETAIL(data), | ||
]; | ||
|
||
queryClient.invalidateQueries({ | ||
queryKey: ACTIVITY_QUERY_KEY.DETAIL(data), | ||
queryKeys.forEach((queryKey) => { | ||
queryClient.invalidateQueries({ queryKey }); | ||
}); |
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.
점점 실력이 느시는 것 같아요!
피드백 드릴 사항이 별로 없고 미미해서 확인만 해주시면 될 것 같아요
어프롭 하겠습니다~
const href = window.URL.createObjectURL(new Blob([blob])); | ||
const a = document.createElement('a'); | ||
a.href = href; | ||
a.download = name; | ||
document.body.appendChild(a); | ||
a.click(); | ||
window.URL.revokeObjectURL(href); | ||
a.remove(); |
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.
긴 라인은 문맥을 한번 구분해주는게 가독성에 좋아요
const href = window.URL.createObjectURL(new Blob([blob])); | |
const a = document.createElement('a'); | |
a.href = href; | |
a.download = name; | |
document.body.appendChild(a); | |
a.click(); | |
window.URL.revokeObjectURL(href); | |
a.remove(); | |
const href = window.URL.createObjectURL(new Blob([blob])); | |
const a = document.createElement('a'); | |
a.href = href; | |
a.download = name; | |
document.body.appendChild(a); | |
a.click(); | |
window.URL.revokeObjectURL(href); | |
a.remove(); |
if (files) { | ||
Array.from(files).forEach((file) => { | ||
formData.append(FORM_DATA_KEY, file); | ||
}); | ||
} |
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.
files
의 형태가 array같은데 Array.from
을 사용하신 이유가 있을까요?
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.
files
가 FileList
형태라서 변환 없이 forEach
를 사용하려고 하니 에러가 발생하여 Array.from
을 사용하였어요
Summary
운영진 대상으로 진행된 2차 활동 QA를 바탕으로 코드를 개선합니다.
Tasks
option
에 category, leader, name 표시, 선택하지 않은 경우는 미선택option
설정badge
추가, 나의 지원 탭 삭제modal
크기 조정ETC
피드백 사항이 많아서 1차 PR 먼저 올립니다. 남은 사항은 서버 수정사항 확인 후 작업하여 추가 PR 하도록 하겠습니다.
이슈도
notion
에 작성된 내용 확인 후 업데이트 하도록 하겠습니다.Screenshot