-
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 #452
The head ref may contain hidden characters: "part3-\uAE40\uD604\uC11C-week14"
[김현서] Week14 #452
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.
수고하셨습니다:)
if (response.status === 200) { | ||
return true; //로그인 성공 | ||
} else { | ||
return false; //로그인 실패 | ||
} |
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 (response.status === 200) { | |
return true; //로그인 성공 | |
} else { | |
return false; //로그인 실패 | |
} | |
return response.status === 200 |
<div className={styles.buttonwrapper}> | ||
<div className={styles.actionbutton}> | ||
<Image | ||
className={styles.actionbutton_image} |
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.
classname 규칙 맞춰주셔요!
import styles from "./AllButton.module.css"; | ||
|
||
const AllButton = ({ active, onClick }) => { | ||
interface AllButtonProps { | ||
active: boolean; |
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.
boolean 값은 is~, has~ 로 시작하는 게 일반적이라 isActive
추천드려요!
<button | ||
className={`${styles.StyledButton} ${buttonClass}`} | ||
onClick={onClick} | ||
color-type={btnType} | ||
> |
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.
ButtonHTMLAttributes 을 쓰신만큼 바로 활용해주셔도 좋을 거 같아요!
<button | |
className={`${styles.StyledButton} ${buttonClass}`} | |
onClick={onClick} | |
color-type={btnType} | |
> | |
const Button = ({ children, btnType, onClick, ...rest }: ButtonProps) => { | |
... | |
<button | |
className={`${styles.StyledButton} ${buttonClass}`} | |
onClick={onClick} | |
color-type={btnType} | |
...rest | |
> |
{Array.isArray(link) ? ( | ||
link.map((item, index) => ( | ||
<Card key={index} link={item} isFolderPage={isFolderPage} /> | ||
)) |
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 { data: folderData, isLoading } = useFolderList(); | ||
|
||
if (isLoading) return <div>Loading...</div>; | ||
if (!folderData) return null; | ||
|
||
const folderId = null; | ||
const 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.
const 값을 굳이 정해줄 필요 없을 거 같아요!
if (modalState[modalType]) { | ||
closeModal(modalType); | ||
} else { | ||
openModal(modalType); | ||
} |
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 적용해주시면 좋을 거 같아요~
if (!Array.isArray(folders) || folders.length === 0) { | ||
interface FolderMenuListProps { | ||
folders: Folder; | ||
activeButton: number | string | 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.
activeButtonId 일 거 같아요...? (진짜 DOM 이 아니라면용)
return ( | ||
<div className={styles.footericons}> | ||
{SOCIAL_SHARES.map((share, index) => ( | ||
<Link key={index} href={share.url} target="_blank"> |
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 로 주는 건 안주는 것과 동일해요! share.url 은 아마도 고유한 값일 거 같은데 이 경우 고유한 값을 넣어주면 좋을 거 같습니다!
요구사항
기본
심화
주요 변경사항
멘토에게