-
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
Quill editor 적용 #38
The head ref may contain hidden characters: "quill-editor-\uC801\uC6A9"
Quill editor 적용 #38
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.
[Unit test] 유닛테스트를 통과하지 못했습니다.
dangerouslySetInnerHTML={{ | ||
__html: sanitize(postContent), | ||
}} | ||
></div> | ||
{/* Hash tags */} | ||
<PostHashTagList tags={tagList} /> | ||
</CardContent> |
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.
이 코드 패치에 대한 간단한 코드 리뷰를 도와드리겠습니다.
버그 리스크:
- 코드 패치에는 심각한 버그 리스크가 보이지 않습니다.
개선 제안:
- CSS 파일 경로 수정:
import "../newpost/quill.mention.css";
로 인해 해당 경로에 있는 CSS 파일을 불러오고 있습니다. 의도한 대로 동작하는지 확인하고, 필요한 CSS 파일의 경로가 정확한지 다시 한번 확인해야합니다. - 서드파티 라이브러리:
isomorphic-dompurify
를 사용하여 HTML을 안전하게 처리하려는 것 같은데, 해당 라이브러리가 프로젝트의 의존성으로 추가되었는지 확인해야합니다. - 코드 가독성 개선: 현재의 코드에서
<Typography>
컴포넌트는 삭제되고, 대신div
요소가 사용되어dangerouslySetInnerHTML
속성을 통해 HTML 문자열을 렌더링하도록 변경되었습니다. 이 변경사항이 예상된 결과인지, 왜 이런 변경이 이루어진 것인지 주석 등으로 설명이 필요합니다.
이외에도 코드의 전체적인 문맥과 목적, 더 자세한 정보가 있다면 더욱 정확하고 유용한 리뷰를 제공할 수 있습니다.
No description provided.