-
Notifications
You must be signed in to change notification settings - Fork 46
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
[강수민] Sprint11 #327
The head ref may contain hidden characters: "Next-\uAC15\uC218\uBBFC-sprint11"
[강수민] Sprint11 #327
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.
고생하셨습니다. 리액트 훅 폼 잘 써보셨네요 👍
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.
아이콘 별도의 컴포넌트로 파일 분리 해주신거 좋네요!
strokeLinecap='round' | ||
/> | ||
</svg> | ||
<PlusIcon width='48' height='48' /> |
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.
아이콘에 width와 height를 주게 설계 하셨던데, svg에 따라서 width와 height가 잘 적용되지 않는 경우도 종종 있더라고요. 개발자 도구에서 꼭 확인해보시면 좋을 것 같습니다.
@@ -22,7 +22,7 @@ function PriceInput({ | |||
const priceValue = formatToPrice(target.value); | |||
const regExp = /^\d*$/; // 숫자만 입력 가능하게 하기 위한 정규식 | |||
if (regExp.test(priceValue)) { | |||
dispatch({ type: "SET_PRICE", payload: +priceValue }); | |||
dispatch({ type: "SET_PRICE", payload: Number(priceValue) }); |
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.
+대신 Number 사용해주신거 좋네요.
useEffect(() => { | ||
const token = | ||
typeof window !== "undefined" | ||
? localStorage.getItem("accessToken") |
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.
accessToken을 localStorage에서 받아온다면, 악성 유저가 accessToken을 넣어서 이 페이지에 접속한다면 로그인이 됐다고 뜰 것 같습니다.
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.
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
원래는 호스트 이름을 다 지정해주지만, 지금은 연습이니까 이거로 한번에 퉁쳐두시는 것도 좋을 것 같습니다.
요구사항
기본
회원가입
로그인
메인
심화
주요 변경사항
스크린샷
배포 사이트로 대체하겠습니다.
판다마켓
멘토에게