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

modal 전역상태 리팩토링 #13

Open
1 of 4 tasks
paperdeer opened this issue Apr 24, 2023 · 0 comments
Open
1 of 4 tasks

modal 전역상태 리팩토링 #13

paperdeer opened this issue Apr 24, 2023 · 0 comments
Assignees
Labels
refactor 코드 리팩토링 할 경우

Comments

@paperdeer
Copy link
Member

paperdeer commented Apr 24, 2023

기능 설명

기존
기존 전역값 selectedModalId로 선택된 모달을 관리하고, 선택된 모달 Component를 화면에 띄워줬음

변경
모달에 들어갈 수 있는 내용인 title, content, inputs, buttons, onclose를 전역으로 관리하여 코드의 양을 줄이고 확장에 용이하도록 수정함

진행 사항

  • 모달 전역상태 로직 수정
  • components > modal폴더 속에 있던 modal 컴포넌트들 정리
  • 바뀐 modal interface에 맞게 기존 로직 수정
  • 각각의 페이지에서 사용하던 modal 컴포넌트 useModalrender함수로 대체
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor 코드 리팩토링 할 경우
Projects
None yet
1 participant