Skip to content

Kim kiseong week2#31

Merged
bk-git-hub merged 2 commits intoIT-Cotato:Kim-kiseongfrom
Kim-kiseong:Kim-kiseong-week2
Mar 26, 2026
Merged

Kim kiseong week2#31
bk-git-hub merged 2 commits intoIT-Cotato:Kim-kiseongfrom
Kim-kiseong:Kim-kiseong-week2

Conversation

@Kim-kiseong
Copy link
Copy Markdown

@Kim-kiseong Kim-kiseong commented Mar 26, 2026

✅ 제출 정보

  • Week: Week <02>

✅ 체크리스트 (필수)

  • PR의 base branchmain이 아니라 내 GitHub 핸들 브랜치(<handle>)다
  • compare branch가 <handle>-week-xx 형식이다
  • 변경 사항이 이번 주 과제 범위에 해당한다
  • (필요 시) 실행 방법을 적었다
  • (가능하면) 결과 스크린샷/데모 링크를 첨부했다

🧩 구현 내용 요약

  • check point 구현
  • 빈 list 구현

❓ 궁금한 점

  • 실제 check를 하여 취소선이 그어지도록 하는 것은 언제 구현하는지 궁금합니다!
image

Copy link
Copy Markdown
Collaborator

@bk-git-hub bk-git-hub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기성님 수고 많으셨습니다!

이번주 핵심 내용들은 전반적으로 잘 구현을 해주셨습니다
그러나 지난주 언급했던 부분들 중 적용되지 않은 부분들이 몇 가지 있어서 조금 아쉬웠어요.
다듬어볼 부분들은 코멘트로 언급해 두었으니 차근차근 살펴보시기 바랍니다.

이번주에는 꼭 커밋 가이드 한번 읽어보시고 작업단위 커밋을 하는 연습을 해보시면 좋겠습니다.
https://www.notion.so/Git-Commit-Guide-327793efb80180bcb8f9c357c580a48d

질문 주신 “실제로 체크해서 취소선이 그어지도록 하는 것”은 보통 상태(state)를 배우고 난 뒤에 자연스럽게 이어지는 구현입니다. 그래서 일단은 week4 배치를 해두었으나 미리 구현 시도를 해보셔도 상관없습니다 :)

];

// 2. 아래쪽에 보여줄 데이터 (텅 빈 배열)
const emptyTodos: any[] = [];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 emptyTodosany[]로 선언해서 빈 배열을 처리하고 있는데, 이런 방식은 TypeScript 타입 체크를 우회하게 됩니다. Todo 타입을 공용으로 빼거나 같은 타입으로 명시해두면 빈 배열도 더 안전하게 다룰 수 있습니다.

Comment on lines +22 to +37
{/* ========================================= */}
{/* 첫 번째 화면: 데이터가 있을 때 (체크박스 토글) */}
{/* ========================================= */}
<div className="section">
<TodoHeader />
<TodoList todos={populatedTodos} />
</div>

{/* ========================================= */}
{/* 두 번째 화면: 데이터가 없을 때 (빈 상태) */}
{/* ========================================= */}
<div className="section" style={{ marginTop: '96px' }}>

<TodoHeader />
<TodoList todos={emptyTodos} />
</div>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다음주에는 이 부분을 조건부 렌더링으로 처리해보면 좋을 것 같아요

Comment on lines +29 to +37
<div className="todo-list">
{todos.map((todo) => (
<TodoCard
key={todo.id}
content={todo.content}
isDone={todo.isDone}
/>
))}
</div>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 목록 구조가 div 기반이라서 실제 “리스트” 의미는 조금 약하게 전달됩니다. 같은 속성의 아이템을 나열하는 구조라면 ul / li를 쓰는 쪽이 더 자연스럽습니다.

@@ -1,15 +1,31 @@
// src/components/TodoCard.tsx
import React from 'react';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React import가 현재 코드에서는 직접 사용되지 않는 것으로 보여서, 최종 제출 전에는 사용하지 않는 import를 한 번 더 정리해두는 습관을 들이면 좋겠습니다.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 파일이 현재 import 되는 곳이 보이지 않아서 한번 점검 해보시면 좋을 것같아요

@bk-git-hub bk-git-hub merged commit e4d50bf into IT-Cotato:Kim-kiseong Mar 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants