-
Notifications
You must be signed in to change notification settings - Fork 117
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
The head ref may contain hidden characters: "part2-\uAE40\uB3D9\uD604-week13"
[김동현] week16 #1066
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
마지막 16주차 과제까지 수고하셨습니다~ 👍
"api/*": [ | ||
"src/api/*" | ||
], | ||
"assets/*": [ | ||
"src/assets/*" | ||
], | ||
"components/*": [ | ||
"src/components/*" | ||
], | ||
"constants/*": [ | ||
"src/constants/*" | ||
], | ||
"pages/*": [ | ||
"src/pages/*" | ||
], | ||
"types/*":[ | ||
"src/types/*" | ||
], | ||
"util/*": [ | ||
"src/util/*" | ||
], |
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.
"@util/* 이거처럼 @ 없이 이렇게 설정을 하기도 합니다! 설정 굳!
@@ -53,7 +53,7 @@ function SharePage() { | |||
<Banner userName={users?.name} /> | |||
<div className="sharePage_contents"> | |||
<SearchBar /> | |||
<CardsArea foldersData={folders} /> | |||
<CardsArea folderList={folders} /> |
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.
명시적으로 array 관련된 값들은 ***List / ***Item 이렇게 구분해서 네이밍을 해요. 기존 Data -> List 로 변경해주셔서 더 좋네요.
혹은 복수 / 단수로 구분도 한답니다.
import { ButtonGroupProps } from "../types/type"; | ||
|
||
function ButtonGroup({ buttonList }: ButtonGroupProps) { | ||
if (!Array.isArray(buttonList)) { | ||
return null; | ||
} |
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.
이렇게 early return 을 추가하는 부분 좋습니다. 이 곳 말고도 프로젝트 내 다양한 곳에 early return 추가할 부분이 있을거에요. early return 을 습관화해서 비효율적인 랜더링을 막으면 최적화에 도움이 됩니다.
export async function getUserFolders(userId: string = '1', folderId?: string ) { | ||
let url = "/users/${userId}/links"; |
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.
지난번 리뷰를 반영해주셨군요! 굳 👍
export interface ButtonGroupProps { | ||
buttonList: ButtonData[] | undefined; | ||
}; | ||
|
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.
타입 추가 좋습니다. 뒤에 undefined 값은 불필요해보입니다~
아래처럼 변경되면 좋겠어요.
export interface ButtonGroupProps {
buttonList: ButtonData[];
};
37039a6
into
codeit-bootcamp-frontend:part2-김동현
주요 변경사항
코드리뷰 반영했습니다
셀프 코드 리뷰를 통해 질문 이어가겠습니다.