-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/15 todo crud #18
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Context API를 활용하여 store, setStore Provide custom hook useStore 작성 : store, setStore, dispatchStore 반환 dispatchStore : key, value 받아서 store에 저장해주는 함수
add 버튼 클릭 : defaultTodo 를 store에 추가 isEdit 상태인 Todo를 앞쪽에 배치
시간 입력시 validate 및 자동 width 조정
title 입력 date picker, time 입력 save 클릭시 isEdit을 false 변경 후 store에 저장
저장시 isNew는 항상 false로 변경 title이 비어있는 경우 저장 불가
isNew === true : store에서 제거 isNew === false : isEdit만 변경
새로운 Todo는 모두 위, 기존 Todo는 편집하더라도 기존 자리 유지
menu 추가 수정, 삭제 기능 추가
…eat/15-todo-crud
JeongBin0227
approved these changes
Feb 18, 2021
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.
very good 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
1. Todo CRUD
2. Global Store 추가
3. 임시 배경 이미지 추가
Related Issues
close #15
close #17