-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Fix] header position & input style 수정 #103
The head ref may contain hidden characters: "102-fix-header-position-input-style-\uC218\uC815"
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.
새로 짜는 것보다 리팩토링하는게 더 힘드실텐데 정말 고생하셨습니다 ... 👍
import classNames from 'classnames/bind'; | ||
import { useState } from 'react'; | ||
import { Modal, Button } from '@/components'; | ||
import SignInModal from '../../../components/SignInModal/SignInModal'; |
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.
@components로 가능한가요?
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.
해당 모달이 들어가는곳이 header밖에 안보이는데 barrel 방식으로 import하면 같은폴더라서 에러나와요
setValue, | ||
watch, | ||
} = useForm({ | ||
mode: 'onBlur', | ||
mode: 'onTouched', |
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.
blur 말고 OnTouched로 바꾸신 이유가 있을까용?
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.
사용해보시면 알거에요 피드백이 조금 더 빨라요우
@@ -88,18 +94,21 @@ export default function SignupForm() { | |||
|
|||
password: register('password', { | |||
required: ERROR_MESSAGE.PASSWORD.required, | |||
minLength: { value: 8, message: ERROR_MESSAGE.PASSWORD.invalid }, |
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.
이거 regex안에 포함되어있지 않나요?! 추가적으로 minLength 설정하신 이유가 있으신가요?!?
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.
직접 써보니까 피드백이 안나오는거같아서 그냥 추가해놨어요
<label htmlFor='check2' className={cn('checkbox-label')}> | ||
<input {...registers.check2} type='checkbox' className={cn('checkbox-input')} id='check2' /> |
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.
label 밑에 input을 넣는군요! 체크체크👌
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.
안넣고 작업하시려면 htmlFor 값에 id를 맞춰주어야 label 클릭해도 상호작용이 됩니다
@@ -40,6 +44,7 @@ export function Providers({ children }: ProvidersProps) { | |||
<ScrollUpButton headerRef={scrollRef} /> | |||
<div id='modal' /> | |||
<ReactQueryDevtools initialIsOpen={false} /> | |||
<ToastContainer autoClose={2000} theme='dark' position='top-center' transition={Zoom} /> |
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.
오옹 provider로 빼는거였군요
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.
정적빌드에러나서 여러가지 시도하다가 실패한 흔적이에요 어디에 두던 상관없읍니다...
https://dev.to/koyablue/how-to-use-react-toastify-with-app-router-447n
나중에 민정님께서 도전...?
import Button from '../Buttons/Button/Button'; | ||
import InputField from '../InputField/InputField'; |
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.
둘 다 아마 @components 의 index 파일에 잇을 겁니다잇
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.
고생하셨습니다!!
{options.map((option) => ( | ||
<Radio | ||
ref={ref} | ||
key={option} | ||
id={option} | ||
value={option} | ||
checked={selectedValue === option} | ||
key={option.value} | ||
id={option.value} | ||
value={option.value} | ||
isChecked={selectedValue === option.value} | ||
isError={!!errorMessage} |
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.
{options.map(([value]) => (
<Radio
ref={ref}
key={value}
id={value}
value={value}
isChecked={selectedValue === value}
isError={!!errorMessage}
이렇게 쓸 수 있을 것 같아요
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.
수고하셨습니다.
🚀 작업 내용
✅ 체크리스트