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

Quill editor 적용 #38

Merged
merged 7 commits into from
Nov 14, 2023
Merged

Quill editor 적용 #38

merged 7 commits into from
Nov 14, 2023

Conversation

jobkaeHenry
Copy link
Collaborator

No description provided.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

[Unit test] 유닛테스트를 통과하지 못했습니다.

@jobkaeHenry jobkaeHenry merged commit f22ee31 into main Nov 14, 2023
@jobkaeHenry jobkaeHenry deleted the quill-editor-적용 branch November 14, 2023 19:15
dangerouslySetInnerHTML={{
__html: sanitize(postContent),
}}
></div>
{/* Hash tags */}
<PostHashTagList tags={tagList} />
</CardContent>

Choose a reason for hiding this comment

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

이 코드 패치에 대한 간단한 코드 리뷰를 도와드리겠습니다.

버그 리스크:

  • 코드 패치에는 심각한 버그 리스크가 보이지 않습니다.

개선 제안:

  1. CSS 파일 경로 수정: import "../newpost/quill.mention.css"; 로 인해 해당 경로에 있는 CSS 파일을 불러오고 있습니다. 의도한 대로 동작하는지 확인하고, 필요한 CSS 파일의 경로가 정확한지 다시 한번 확인해야합니다.
  2. 서드파티 라이브러리: isomorphic-dompurify를 사용하여 HTML을 안전하게 처리하려는 것 같은데, 해당 라이브러리가 프로젝트의 의존성으로 추가되었는지 확인해야합니다.
  3. 코드 가독성 개선: 현재의 코드에서 <Typography> 컴포넌트는 삭제되고, 대신 div 요소가 사용되어 dangerouslySetInnerHTML 속성을 통해 HTML 문자열을 렌더링하도록 변경되었습니다. 이 변경사항이 예상된 결과인지, 왜 이런 변경이 이루어진 것인지 주석 등으로 설명이 필요합니다.

이외에도 코드의 전체적인 문맥과 목적, 더 자세한 정보가 있다면 더욱 정확하고 유용한 리뷰를 제공할 수 있습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant