-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
- API 호출 방식 변경 : axiox -> fetch
- react quill -> toast ui 라이브러리 변경 - QuillWritten -> ToastViewer 이름 변경
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.
수고하셨습니다! 리뷰 확인 부탁드려용
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' |
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.
useDidMountEffect는 hooks 폴더 안에 있어서 가져다가 쓰시면 될 것 같습니다!
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.
넵 수정했습니다!
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' |
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.
NavBar는 layout.tsx 파일에서 한번에 관리해서 아예 빼셔도 될 것 같아요!
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.
넵 감사합니다! 다른 파일들에서도 모두 뺐습니다 😄
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.
혹시 제가 이미 추가 했던 파일인데 또 추가되는 이유가 있을까요??
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.
아 머지되기 전 브랜치라 추가했었습니다! 😅
지금은 다시 제거했습니다
@@ -0,0 +1,263 @@ | |||
'use client' | |||
|
|||
import { act } from '@testing-library/react' |
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.
마이그레이션 후 React-Testing-Library로 테스팅은 안하고 있으니 일단 빼셔도 될 것 같습니다!
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.
넵 수정했습니다!
@@ -0,0 +1,130 @@ | |||
'use client' | |||
|
|||
import { act } from '@testing-library/react' |
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.
여기도 아까와 같습니다!
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.
넵!
@@ -17,7 +17,7 @@ type DataObject = { | |||
thumbNail: string | |||
} | |||
|
|||
type ParamsType = { | |||
export type ParamsType = { |
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.
혹시 이거 export해서 어디다가 가져다 쓰시는 건가요??..
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.
아 지금은 사용하는 곳이 없어서 빼야겠네요
감사합니당 😊
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.
수고 많으셨어요~~!!
🛠️ 변경사항
GptModal, ReadReply, ReadReReply, WritingReReply, 컴포넌트
Reply, PutReply 컴포넌트
QuillWritten 컴포넌트
☝️ 유의사항
👀 참고자료
❗체크리스트