-
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
서술형 커뮤니티화 #114
서술형 커뮤니티화 #114
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.
@Kim-Hyunjo 천천히 봐주세용
e.preventDefault(); | ||
const formElement = e.target as HTMLFormElement; | ||
const data = new FormData(formElement); | ||
const content = data.get('post-input')?.toString(); | ||
if (!content) return; | ||
addPost({ problemId: parseInt(id), content }); | ||
formElement.reset(); |
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.
postInput이랑 거의 겹치는데 이거 공통화는 어려울까용
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.
singleInputValue를 submit할때에 대한 util함수를 생성해보았습니다,,
Issue Number
close: #428
작업 내역
작업 유형
PR 특이 사항