Skip to content
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

너소서 폼 작성 부분 #87

Merged
merged 13 commits into from
Jan 17, 2022
Merged

너소서 폼 작성 부분 #87

merged 13 commits into from
Jan 17, 2022

Conversation

SeojinSeojin
Copy link
Member

@SeojinSeojin SeojinSeojin commented Jan 16, 2022

⛓ Related Issues

📋 작업 내용

  • 너소서 작성 첫페이지
  • 너소서 작성 둘째 페이지
  • 너소서 작성 셋째 페이지
  • 너소서 작성 마지막 페이지
  • 너소서 작성에 POST 목킹

📌 PR Point

  • 레코일을 사용하여 페이지 간 값을 공유함
  • 서버와 상의하여 넘길 파라미터 값을 작성해둠
  • 키워드 뼀다꼈다 하는건 팀 피드백 작성했던걸 우려먹었어요.. 변수를 뺐어야 했는데 못 뺐습니다.. 나중에 코드를 보면 깜짝 놀랄 수 있습니다..
  • 그래서 키워드 뺐다꼈다 할 때도 다른 처리가 필요한데 다른 뷰에서도 쓰이는 일이라 다음 이슈로 넘겨서 처리하겠습니다.. (메이비.. 키워드 입력 폼 분리하기 #47 ...)

👀 스크린샷 / GIF / 링크

@SeojinSeojin SeojinSeojin added feature 🎄 기능 개발 layout 🍃 레이아웃 개발 labels Jan 16, 2022
@SeojinSeojin SeojinSeojin self-assigned this Jan 16, 2022
@SeojinSeojin
Copy link
Member Author

울 웹쁜이 고생많았어 ! 여기서 미리보기로 보면서 쉬어~ 다른 웹쁜이들한테도 자랑해줘~

Copy link
Member

@NamJwong NamJwong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생했오~~~ 💋

@SeojinSeojin
Copy link
Member Author

울 웹쁜이 고생많았어 ! 여기서 미리보기로 보면서 쉬어~ 다른 웹쁜이들한테도 자랑해줘~

Copy link
Member

@Hyoin-Kim Hyoin-Kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생많았어!!!!!!!! 서진코드 머지하고 또 분석할생각에 설레,,
혹시 버튼에 disabled 넣어줄수있는지,,, !!! 넣어주면 좋을것같아 ㅎ-ㅎ

};

const postFormAnswer = async (body: NeososeoAnswerData) => {
console.log(body);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log 발견 히히

Comment on lines +12 to +17
<StNeososeoFormHeader>
<div>{title}</div>
<div>
<img src={image} alt={title} />
</div>
</StNeososeoFormHeader>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이코드 제가 짠코드 과감히 버리고 재사용해도될까요 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
요 부분이 맞져?
그럼 되옵니다!!

setNeososeoAnswer((prev) => ({ ...prev, keyword: keywordList.map((k) => k.id) }));
}, [keywordList]);

if (!neososeoFormData) return <></>;
Copy link
Member

@Hyoin-Kim Hyoin-Kim Jan 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요건 무슨 코드이징?.? (진짜몰라서 물어보는거..)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

너소서 폼데이터를 API로 받아올 때 없으면 아무것도 안 렌더링되게 일단 해둔 것!!!

<ImmutableKeywordList keywordList={keywordList} onItemClick={() => null} />
</StKeywordListWrapper>
</div>
<StButton onClick={postNeososeoForm}>답변 작성하기</StButton>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

필수값이 빈값이면 버튼 disalbed하는거 넣어주는건 어떨까!!

<div>
<div>{neososeoFormData.content}</div>
</div>
<StButton onClick={() => navigate('intro')}>답변 작성하기</StButton>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기도!! 필수값 빈값이면 disalbed해주기

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

얍얍!! 넣어주겠읍니다~!!!!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넣어주었습니다~!

Comment on lines +36 to +37
<span>Q.</span>
<span>{neososeoFormData.content}</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

나는 <p>Q.<p> 이랬는데 <span>태그로 바꿀까?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

옹 p는 넓은 친구고 span은 좁을 수도 있는 친구라 span이 조을 것 같아..!!

@SeojinSeojin
Copy link
Member Author

울 웹쁜이 고생많았어 ! 여기서 미리보기로 보면서 쉬어~ 다른 웹쁜이들한테도 자랑해줘~

@SeojinSeojin
Copy link
Member Author

울 웹쁜이 고생많았어 ! 여기서 미리보기로 보면서 쉬어~ 다른 웹쁜이들한테도 자랑해줘~

@SeojinSeojin SeojinSeojin merged commit 9997126 into dev Jan 17, 2022
@SeojinSeojin SeojinSeojin deleted the feat/#48 branch January 17, 2022 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎄 기능 개발 layout 🍃 레이아웃 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

너가 소개서 작성 완성
4 participants