-
Notifications
You must be signed in to change notification settings - Fork 7
[4주차] 박소윤/ todolist 추가기능 구현 #63
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
base: 박소윤/main
Are you sure you want to change the base?
The head ref may contain hidden characters: "\uBC15\uC18C\uC724/4\uC8FC\uCC28"
Conversation
yezzan9
left a comment
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.
4주차 과제도 수고하셨습니다!
코멘트 남겨드렸으니 확인하시고 소윤님 생각도 남겨주세용
| <TextComponent text="TodoMatic" type="title" /> | ||
| <TextComponent text="What needs to be done?" type="subTitle" /> | ||
| <h1> | ||
| TodoMatic | ||
| </h1> | ||
| <h2 style={{ fontWeight: "normal" }}> | ||
| What needs to be done? | ||
| </h2> |
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.
이 부분은 왜 TextComponent를 사용하지 않는 방식으로 수정하셨는지 궁금해용!
| <> | ||
| <div className="task-row"> | ||
| <CheckboxComponent | ||
| isChecked={task.completed} | ||
| onChange={() => toggleTask(task.id)} // task.id 전달 | ||
| /> | ||
| <span className={`task-name ${task.completed ? 'completed' : ''}`}> {/* 완료된 할 일에 스타일 적용 */} | ||
| <TextComponent text={task.name} /> | ||
| </span> | ||
| </div> | ||
| <div className="task-actions"> | ||
| {/* Edit 클릭 시 handleEditClick 호출 */} | ||
| <ButtonComponent label="Edit" onClick={() => handleEditClick(task)} /> {/* task 객체 전체 전달 */} | ||
| <ButtonComponent label="Delete" onClick={() => deleteTask(task.id)} /> {/* task.id 전달 */} | ||
| </div> | ||
| </> |
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.
TodoComponent를 삭제하고 인라인으로 구현해주셨는데, 기존에 구현하셨던 대로 TodoComponent를 이용해주셔야합니다! 해당 부분을 컴포넌트화하도록 수정해주세요🙌
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.
해당 파일은 어디에 사용되는 걸까용..?!
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.
앗 이거 두개 파일은 완전초반에 과제한건데 같이 올라온거같아요ㅜ! 삭제하겠습니당
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.
이 파일도요!
1. 작업 목적
주요 기능 추가 마무리
2. 작업 내용
edit 할때 new name for, cancle, save 창으로 바뀌게 화면 전환
save버튼 검정색
task 스토리지에 저장하기
3. 구현