-
Notifications
You must be signed in to change notification settings - Fork 44
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
[권주현] Week14 #449
The head ref may contain hidden characters: "part3-\uAD8C\uC8FC\uD604-week14"
[권주현] Week14 #449
Conversation
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.
수고하셨습니다ㅎㅎ!
let url = `${CODEIT_BASE_URL}/users/${userId}/links`; | ||
if (folderId) { | ||
url += `?folderId=${folderId}`; | ||
} |
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.
삼항연산자를 사용하면 url 을 const 로 쓸 수 있을 거 같아요!
import styles from "./index.module.css"; | ||
|
||
interface AuthHeaderProps { | ||
purpose: string; |
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.
purpose 가 "signin" 아니면 "signup" 등 정해진 문자라서 조금 더 좁은 타입으로 정의해주심 좋을 거 같아요!
type TProps = "signin" | "signup"
<span>소셜 로그인</span> | ||
<ul className={styles.socialLoginBtns}> | ||
{SOCIALLINKS.map(({ src, href }, i: number) => ( | ||
<li key={i}> |
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.
key 를 index 로 주면 아예 안 준것과 똑같아서 만약 중복이 없다면 src 자체를 key 로 넘기는 것도 좋을 거 같아요!
요구사항
기본
심화
주요 변경사항
멘토에게