-
Notifications
You must be signed in to change notification settings - Fork 2
[Fix] 워크스페이스 모달 이미지 업로드 QA #503
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
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.
고생하셨습니다~~!!!!! 가벼운 코멘트 한번 확인해주세요~
export const MAX_TEAM_COUNT = 8; | ||
export const MAX_TEAM_COUNT = 8 as const; | ||
|
||
export const MAX_TEAM_NAME = 30 as const; |
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.
as const를 선언하는 이유가 const로 선언한 객체의 프로퍼티의 값까지 상수화하여 타입으로 활용하고자 할 떄 사용하는 것으로 아는데 Number 원시값에 사용한 이유가 있으실까요?
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 [inputValue, setInputValue] = useState(formData.name); | ||
|
||
const isDisabled = inputValue.trim().length === 0; | ||
const isNameError = inputValue.length > MAX_TEAM_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.
isNameLengthError 로 하면 변수명이 길어지긴 하지만 좀 더 직관적일 수도 있겠네요~
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.
수고하셨습니다! 마지막 쿠에이!!
URL.revokeObjectURL(newFileURL); | ||
}, | ||
onError: (error) => { | ||
console.error(error); |
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.
에러 발생할 때 찍어주는 콘솔이라서 유지하겠슴니당 !
해당 이슈 번호
closed #497
체크리스트
💎 PR Point
워크스페이스 생성 모달 큐에이 진행했습니다
모달의 마지막 단계에 (complete) 업로드한 이미지를 보여줘야 하는데 이미지 url을 전달하면 자꾸 엑박이 떠서..
일단 onError 속성 사용해서 띄워줬습니다. 시간 생기는대로 해결해볼게요
SNB에는 정상적으로 뜹니다
엑박 이슈는 다음 브랜치에서 진행하겠습니다
📌스크린샷 (선택)