Skip to content

♻️ Refactor: 모달 리팩토링 #121

@un0211

Description

@un0211

작업 설명

현재 모달에서는 Props가 여러 타입으로 올 수 있어서 | 로 연결하고, 타입 단언을 하고 있습니다.
미리 해당 타입이 맞는지 확인하는 방어적 코드를 추가합니다.

세부 작업 목록

  • 확인, 취소/확인만 있는 간단한 모달 통합
    • notificationModal: 설명과 확인 버튼만 존재. 특별한 작업 원할 시 onClick 선택적으로
    • confirmModal: 삭제전 확인하는 모달. 삭제와 확인 버튼 존재. 삭제작업은 onActionClick 필수
  • 이외 모달 리팩토링
    • newColumn 모달, ColumnsSection 수정
    • modifyColumn
    • inviteMember
    • newDashboard
  • ModalProps 타입 단언 방어적 코드 작성

관련 이슈

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions