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

[김동현] week16 #1066

Conversation

dtc03003
Copy link
Collaborator

@dtc03003 dtc03003 commented May 3, 2024

주요 변경사항

  • 코드리뷰 반영했습니다

  • 셀프 코드 리뷰를 통해 질문 이어가겠습니다.

Copy link

vercel bot commented May 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
4-weekly-mission ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 3, 2024 2:02am
4-weekly-mission-ursd ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 3, 2024 2:02am

Copy link
Collaborator

@arthurkimdev arthurkimdev left a comment

Choose a reason for hiding this comment

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

마지막 16주차 과제까지 수고하셨습니다~ 👍

Comment on lines +18 to +38
"api/*": [
"src/api/*"
],
"assets/*": [
"src/assets/*"
],
"components/*": [
"src/components/*"
],
"constants/*": [
"src/constants/*"
],
"pages/*": [
"src/pages/*"
],
"types/*":[
"src/types/*"
],
"util/*": [
"src/util/*"
],
Copy link
Collaborator

Choose a reason for hiding this comment

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

"@util/* 이거처럼 @ 없이 이렇게 설정을 하기도 합니다! 설정 굳!

@@ -53,7 +53,7 @@ function SharePage() {
<Banner userName={users?.name} />
<div className="sharePage_contents">
<SearchBar />
<CardsArea foldersData={folders} />
<CardsArea folderList={folders} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

명시적으로 array 관련된 값들은 ***List / ***Item 이렇게 구분해서 네이밍을 해요. 기존 Data -> List 로 변경해주셔서 더 좋네요.
혹은 복수 / 단수로 구분도 한답니다.

Comment on lines +3 to +8
import { ButtonGroupProps } from "../types/type";

function ButtonGroup({ buttonList }: ButtonGroupProps) {
if (!Array.isArray(buttonList)) {
return null;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

이렇게 early return 을 추가하는 부분 좋습니다. 이 곳 말고도 프로젝트 내 다양한 곳에 early return 추가할 부분이 있을거에요. early return 을 습관화해서 비효율적인 랜더링을 막으면 최적화에 도움이 됩니다.

Comment on lines +21 to +22
export async function getUserFolders(userId: string = '1', folderId?: string ) {
let url = "/users/${userId}/links";
Copy link
Collaborator

Choose a reason for hiding this comment

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

지난번 리뷰를 반영해주셨군요! 굳 👍

Comment on lines +31 to +34
export interface ButtonGroupProps {
buttonList: ButtonData[] | undefined;
};

Copy link
Collaborator

Choose a reason for hiding this comment

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

타입 추가 좋습니다. 뒤에 undefined 값은 불필요해보입니다~
아래처럼 변경되면 좋겠어요.

export interface ButtonGroupProps {
  buttonList: ButtonData[];
};

@arthurkimdev arthurkimdev merged commit 37039a6 into codeit-bootcamp-frontend:part2-김동현 May 3, 2024
3 checks passed
@arthurkimdev arthurkimdev changed the title Part2 김동현 week16 [김동현] week16 May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
미완성 죄송합니다..
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants