-
Notifications
You must be signed in to change notification settings - Fork 0
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
만든 사람들 페이지 #184
만든 사람들 페이지 #184
Conversation
…coko-Front into issue/#181/Part_Name
…coko-Front into issue/#181/Part_Name
…e-team/8term-coko-Front into issue/#177/creators_page
document.removeEventListener('wheel', blockScroll); | ||
}, | ||
}); | ||
const [isPaused, toggleIsPaused] = useToggle(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.
여태 useState + 토글 함수를 따로 만들어서 사용했는데 해당 훅을 사용하면 함수를 따로 만들 필요가 없어서 간편하네요. 😲
if (quizIntroRef.current) { | ||
scrollToElement(quizIntroRef.current, { behavior: 'smooth' }); | ||
} | ||
}; | ||
|
||
return ( | ||
<S.IntroWrapper> | ||
<title>코코-자바스크립트 학습 사이트</title> |
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.
갑자기 좀 고민되는 게 해당 title 태그 모든 곳에서 동일한 타이틀명으로 두는 게 좋을까요?
아니면 약간 다르게 주는 게 좋을까요? (예시: 코코 - 학습, 코코 - 상점)
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.
페이지마다 다르게 해두는게 좋을 것 같은데 어떤가요?
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.
넵 저도 찬성입니다!
src/features/intro/constants.ts
Outdated
export const MEMBER_DETAILS: Record< | ||
string, | ||
{ team: string; description: string; sns: { icon: string; url: 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.
상수는 as const 정의해서 사용하는게 어떨까요?
key와 관련된 문제라면 modern-kit objectKeys와 같은 모듈을 사용하면 웬만한 문제는 해결이 가능합니다
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.
어느정도 형식이 규격화? 된 상수들은 이런식으로 별도 타입을 정의해서 사용했었는데 좋은 습관은 아니였나 보네요 🙄
리뷰 감사합니다!
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.
@rhehfl 상수와 같이 형식이 정해져있는 값들은 타입이 오히려 더 디테일하게 다뤄지는게 맞다고 생각해요 😄
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.
맞는 것 같네요👍👍😊
src/pages/creators/Creators.tsx
Outdated
const handleSetMember: (value: string) => void = value => { | ||
if (!COKO_TEAM_INFO.some(team => team.label === value)) { | ||
setMember(value); | ||
} | ||
}; |
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 handleSetMember: (value: string) => void = value => { | |
if (!COKO_TEAM_INFO.some(team => team.label === value)) { | |
setMember(value); | |
} | |
}; | |
const handleSetMember = (value: string) => { | |
if (!COKO_TEAM_INFO.some(team => team.label === value)) { | |
setMember(value); | |
} | |
}; |
함수 자체 타입 정의는 안해도 될 것 같습니다 :)
🔗 관련 이슈
#177
📝작업 내용
만든 사람들(모애8기) 를 소개하는 페이지를 추가
반응형
🔍 변경 사항
💬리뷰 요구사항 (선택사항)