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

Feat/15 todo crud #18

Merged
merged 21 commits into from
Feb 18, 2021
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
238e040
[#15] refact : data.json todoSection에 isAddable 필드 추가
choibumsu Feb 13, 2021
0d6d176
[#15] feat : 배경 이미지 추가
choibumsu Feb 14, 2021
3ae5bfa
[#17] feat : global store 작성
choibumsu Feb 17, 2021
25a5bd2
[#17] refact : data 구조 변경 및 App에 store 적용
choibumsu Feb 17, 2021
291f9b3
[#17] refact : SideMenuBar 컴포넌트 store 적용
choibumsu Feb 17, 2021
ccb65a2
[#17] fix : time util 함수 UTC 제거
choibumsu Feb 17, 2021
3f68d80
[#17] refact : Timer 컴포넌트 store 적용 및 util 함수로 코드 분리
choibumsu Feb 17, 2021
7cd312a
[#17] refact : Object.keys 함수 반환값 타입 지정
choibumsu Feb 17, 2021
4d4a925
[#17] refact : TodoContainer 컴포넌트 store 적용
choibumsu Feb 17, 2021
0a2e5e0
[#15] feat : scss color variables 추가 및 배경 스타일 지정
choibumsu Feb 17, 2021
4024fc2
[#15] feat : TodoSection Add 기능 추가
choibumsu Feb 17, 2021
0584e32
[#15] feat : TodoProps 타입에 isEdit 추가
choibumsu Feb 17, 2021
f5aceb4
[#15] feat : install react-datepicker
choibumsu Feb 17, 2021
c867378
[#15] feat : TimeInput 컴포넌트 작성
choibumsu Feb 17, 2021
a9827b7
[#15] feat : TodoContainer 컴포넌트 작성
choibumsu Feb 17, 2021
b1b860b
[#15] feat : TodoProps isEdit 필드 옵션으로 변경
choibumsu Feb 17, 2021
e986c97
[#15] feat : Todo 저장 기능 변경
choibumsu Feb 17, 2021
1e462bd
[#15] feat : Todo 수정 취소 기능 보완
choibumsu Feb 17, 2021
faf581c
[#15] refact : Todo 정렬 순서 조정
choibumsu Feb 17, 2021
fa69301
[#15] feat : Todo 수정, 삭제 기능 추가
choibumsu Feb 17, 2021
70c2108
Merge branch 'main' of https://github.com/payw-org/ttock-ttack into f…
choibumsu Feb 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[#15] feat : TodoProps isEdit 필드 옵션으로 변경
choibumsu committed Feb 17, 2021
commit b1b860b790e4c9629b9a7fc252cec020f265d4ab
24 changes: 8 additions & 16 deletions public/data/data.json
Original file line number Diff line number Diff line change
@@ -70,64 +70,56 @@
"id": 1,
"title": "과제 제출하기",
"dueDate": "2021-02-11 23:59:59",
"isMain": false,
"isEidt": false
"isMain": false
},
{
"sectionId": 1,
"id": 2,
"title": "스테이크 굽기",
"dueDate": "2021-02-07 18:30:00",
"isMain": false,
"isEidt": false
"isMain": false
},
{
"sectionId": 1,
"id": 3,
"title": "과제 제출하기",
"dueDate": "2021-02-11 23:59:59",
"isMain": false,
"isEidt": false
"isMain": false
},
{
"sectionId": 1,
"id": 4,
"title": "과제하기",
"dueDate": "2021-02-11 23:59:59",
"isMain": false,
"isEidt": false
"isMain": false
},
{
"sectionId": 1,
"id": 5,
"title": "개발",
"dueDate": "2021-02-11 23:59:59",
"isMain": false,
"isEidt": false
"isMain": false
},
{
"sectionId": 2,
"id": 6,
"title": "과제 제출하기",
"dueDate": "2021-02-11 23:59:59",
"isMain": false,
"isEidt": false
"isMain": false
},
{
"sectionId": 2,
"id": 7,
"title": "스테이크 굽기",
"dueDate": "2021-02-07 18:30:00",
"isMain": false,
"isEidt": false
"isMain": false
},
{
"sectionId": 2,
"id": 8,
"title": "과제 제출하기",
"dueDate": "2021-02-11 23:59:59",
"isMain": false,
"isEidt": false
"isMain": false
}
],
"toggleConfig": {
3 changes: 2 additions & 1 deletion src/components/TodoContainer/TodoSection/Todo/index.tsx
Original file line number Diff line number Diff line change
@@ -8,7 +8,8 @@ export interface TodoProps {
title: string
dueDate: Date
isMain: boolean
isEdit: boolean
isEdit?: boolean
isNew?: boolean
}

export const Todo: React.FC<TodoProps> = ({ title, dueDate, isMain }) => {