-
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
[#167] 커뮤니티 작성 페이지 api #168
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
yarn build 하셔서 배포 안되는부분 확인해주세요!! |
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.
확인하시고 코멘트 남겨주세요!!
hidden | ||
/> | ||
</div> | ||
<TitleBox fontSize={16}/> |
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.
혹시 이부분은 공통 스타일에 없는 부분인가요?
{previewImage.length === 0 ? null : ( | ||
<> | ||
{previewImage.map((image, index) => ( | ||
<ImageBox key={index} index={index} image={image}/> | ||
))} | ||
</> | ||
)} |
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.
이부분은 && 연산자를 사용해서 작성해도 좋을것 같아요!
options: string[]; // options를 문자열 배열로 변경 | ||
chosen?: string | null; // chosen을 문자열 또는 null로 변경 | ||
onChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void; // onChange 타입 변경 | ||
onChange?: (e: ChangeEvent<HTMLSelectElement>) => void; // onChange 타입 변경 |
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.
주석 내용이 반영되었다면 주석을 같이 지워주시면 좋을것 같습니다!
options: string[]; // options를 문자열 배열로 변경 | ||
chosen?: string | null; // chosen을 문자열 또는 null로 변경 | ||
onChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void; // onChange 타입 변경 | ||
onChange?: (e: ChangeEvent<HTMLSelectElement>) => void; // onChange 타입 변경 |
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 handleSubmit = async () => { | ||
console.log("request start"); | ||
|
||
const response = await postCommunityWritingAPI({ | ||
topic: formData.selectedValue, | ||
title: formData.title, | ||
content: formData.content, | ||
images: formData.previewImage, | ||
}); | ||
console.log(response); |
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.
콘솔도 같이 지워주세욥
Issue
Description
Check List
main
브랜치의 최신 상태를 반영하고 있는지 확인Screenshot