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

refactor: document type #271

Merged
merged 17 commits into from
Nov 24, 2024
Merged

refactor: document type #271

merged 17 commits into from
Nov 24, 2024

Conversation

rabyeoljji
Copy link
Contributor

개요

음... document type이 리스트를 불러올 때랑 디테일을 불러올 때 필드가 몇 개 달라서 아예 분리해봤습니다.
정우님 의견을 여쭤보고 싶습니다!

세부 내용

관련 링크

@rabyeoljji rabyeoljji self-assigned this Nov 23, 2024
@rabyeoljji rabyeoljji requested a review from jw-r November 23, 2024 03:06
Copy link
Member

@jw-r jw-r left a comment

Choose a reason for hiding this comment

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

너무 좋은데요?
한가지 코맨트만 확인 부탁드려요🙌

Comment on lines 170 to 172
type Item = DocumentDetailItem
type List = DocumentListItem[]
type ListItem = DocumentListItem
Copy link
Member

Choose a reason for hiding this comment

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

너무 좋은데요?
네이밍만 조금 더 직관적으로 바뀌면 좋을 것 같아요!
예를들면 아래와 같은..?
Document.DetailItem
Document.ItemInList
Document.List

Copy link
Contributor Author

Choose a reason for hiding this comment

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

좋아요👍👍

@rabyeoljji rabyeoljji merged commit 8a20979 into develop Nov 24, 2024
5 checks passed
rabyeoljji added a commit to rabyeoljji/pick-toss-next that referenced this pull request Nov 24, 2024
* feat: document card check

* feat: query client for storybook

* fix: merge and fix error

* feat: directory id에 따른 documents 가져오기 + queries 적용

* fix: 불필요한 코드 삭제

* fix: build error

* fix: import

* fix: storybook

* fix: expend buttons bug

* fix: document markdown debugging

* refactor: document type

* refactor: 타입명 수정

* fix: modify document
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.

2 participants