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

Fe/#243 ReadingPage 및 GptModal, Reply, QuillWritten, ReadReply, ReadReReply, WritingReReply, PutReReply 컴포넌트 마이그레이션 #273

Merged
merged 12 commits into from
Oct 15, 2023

Conversation

Yujin-Baek
Copy link
Member

🛠️ 변경사항

GptModal, ReadReply, ReadReReply, WritingReReply, 컴포넌트

  • api 호출 방식 변경 axios -> fetch
  • img -> next/Image 태그 변경

Reply, PutReply 컴포넌트

  • api 호출 방식 변경 axios -> fetch

QuillWritten 컴포넌트

  • react quill -> toast ui 라이브러리 변경
  • QuillWritten -> ToastViewer 이름 변경


☝️ 유의사항

  • 추후 ToastViewer 디자인 수정


👀 참고자료



❗체크리스트

  • 하나의 메소드는 최소의 기능만 하도록 설정했나요?
  • 수정 가능하도록 유연하게 작성했나요?
  • 필요 없는 import문이나 setter 등을 삭제했나요?
  • 기존의 코드에 영향이 없는 것을 확인하였나요?

Copy link
Collaborator

@Mayreeel Mayreeel left a comment

Choose a reason for hiding this comment

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

수고하셨습니다! 리뷰 확인 부탁드려용

import nested_reply from '../../../public/images/svg/nested_reply.svg'
import pencil_square from '../../../public/images/svg/pencil-square.svg'
import { refreshState } from '../../utils/atoms'
// TODO: import useDidMountEffect from '../../../../useDidMountEffect'
Copy link
Collaborator

Choose a reason for hiding this comment

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

useDidMountEffect는 hooks 폴더 안에 있어서 가져다가 쓰시면 될 것 같습니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

넵 수정했습니다!

import { useRecoilState, useRecoilValue } from 'recoil'
import gptIcon from '../../../../../public/images/svg/gptIcon.svg'
import ProfileIcon from '../../../../../public/images/svg/profileIcon.svg'
// TODO: import NavBar from '../../components/general/NavBar'
Copy link
Collaborator

Choose a reason for hiding this comment

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

NavBar는 layout.tsx 파일에서 한번에 관리해서 아예 빼셔도 될 것 같아요!

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
Collaborator

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.

아 머지되기 전 브랜치라 추가했었습니다! 😅
지금은 다시 제거했습니다

@@ -0,0 +1,263 @@
'use client'

import { act } from '@testing-library/react'
Copy link
Collaborator

Choose a reason for hiding this comment

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

마이그레이션 후 React-Testing-Library로 테스팅은 안하고 있으니 일단 빼셔도 될 것 같습니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

넵 수정했습니다!

@@ -0,0 +1,130 @@
'use client'

import { act } from '@testing-library/react'
Copy link
Collaborator

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.

넵!

@@ -17,7 +17,7 @@ type DataObject = {
thumbNail: string
}

type ParamsType = {
export type ParamsType = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

혹시 이거 export해서 어디다가 가져다 쓰시는 건가요??..

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
Collaborator

@Mayreeel Mayreeel left a comment

Choose a reason for hiding this comment

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

수고 많으셨어요~~!!

@Yujin-Baek Yujin-Baek merged commit e96e49f into FE/#207 Oct 15, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants