Feat: Chip, DropButton 컴포넌트 구현 #44
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 Summary
📚 Tasks
creat페이지에서만 사용하는 textarea wdgets/create로 이동했습니다.
variant는 승인 / 거절 상태를 구분하기 위한 용도이고 active는 현재 선택된 상태인지 여부, disabled는 클릭 가능 여부를 제어하기 위해 추가했습니다.
또한 Chip 컴포넌트에서는 일반 사용자와 게시글 작성자를 구분해 인터랙션 가능 여부를 나누기 위해
mode를 display / action 두 가지로 분리했습니다.
이 구조는 Discriminated Union을 잘 활용한 패턴으로 mode에 따라 필요한 props를 타입 레벨에서 명확히 분리할 수 있습니다.
📸 Screenshot
해당 작업에 대한 스크린샷 및 자료를 첨부해 주세요.
