-
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 #1067
The head ref may contain hidden characters: "part3-\uAE40\uC900\uC601-week16"
[김준영] Week16 #1067
Conversation
@yohan11 is attempting to deploy a commit to the soohwan93's projects Team on Vercel. A member of the Team first needs to authorize it. |
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주차 과제까지 수고하셨습니다~ 👍
{links && | ||
links.map((link) => { | ||
const createdAt = link.created_at || link.createdAt; | ||
const imageSource = link.image_source || link.imageSource; |
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.
뭔가 Prettier, Lint 룰이 변경되었나보군요!
return ( | ||
<Card | ||
key={link.id} | ||
id={link.id} | ||
cardImage={imageSource} | ||
cardTime={{ | ||
createdDateString: formatDate(createdDate), | ||
timeDifference: getTimeDifference(createdDate, currentDate), | ||
}} | ||
cardDescription={link.description || ""} | ||
cardUrl={link.url} | ||
/> | ||
); | ||
})} |
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.
뭔가 Prettier, Lint 룰이 변경되었나보군요!
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보다는 2를 더 많이 사용하곤 합니다~
{foldersInfo.length !== 0 | ||
{foldersInfo |
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.
리뷰 반영 굳 입니다! 👍
if (!context) { | ||
throw new Error(""); | ||
} |
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.
에러 메시지에 "" 보다는 아래처럼 조금 더 구체적인 메시지가 담기면 향후 디버깅에 보다 수월할거에요~
if (!context) {
throw new Error("MyInfoContext state error");
}
hostname: "bootcamp-api.codeit.kr", | ||
port: "", | ||
pathname: "/api/**", //**는 해당 경로 뒤에 모든 경로, | ||
hostname: "**", |
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.
리뷰 반영 굳! 👍
const loadFolders = async () => { | ||
const res = await getFolders(); | ||
setFoldersInfo(res); | ||
}; |
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로 분리해서 함께 사용해도 좋겠습니다.
function Index() { | ||
return <div>Index</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.
페이지 컴포넌트명이 Index 보다는 Home 혹은 Main 이 보다 명시적일 것 같습니다~
// const loadNewLinks = () => { | ||
// if (keyword) { | ||
// const loweredKeyword = keyword.toLowerCase(); | ||
// setLinks((prevState: TLink[]) => FILTER_LINKS(prevState, loweredKeyword)); | ||
// } else { | ||
// setLinks(folderInfo.links); | ||
// } | ||
// }; | ||
|
||
// useEffect(() => { | ||
// loadNewLinks(); | ||
// }, [keyword]); | ||
|
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.
사용하지 않는 주석은 제거 해주세요~
{keyword ? ( | ||
<SearchMessage> | ||
{keyword} | ||
<span className="font-color-gray4">으로 검색한 결과입니다.</span> |
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.
font-color-gray4
css 클래스명이 구체적이라 좋습니다.
804e55a
into
codeit-bootcamp-frontend:part3-김준영
요구사항
기본
심화
리팩토링 예정
멘토에게