Skip to content
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

Merged
merged 12 commits into from
Jun 22, 2024

Conversation

bokeeeey
Copy link
Contributor

@bokeeeey bokeeeey commented Jun 21, 2024

🚀 작업 내용

  • 드롭다운 xs사이즈 확인
  • input suffix 영역 확인
  • birth값 숫자만 받게 수정
  • 헤더에 로그인 연결
  • 로그인 상태에서 로그인 모달 안뜨게 처리
  • 회원가입 로직 수정
  • 드롭다운 스크롤 추가 => MaxHeight

✅ 체크리스트

  • Code Review 요청
  • Label 설정
  • PR 제목 규칙에 맞는지 확인

@bokeeeey bokeeeey added 🐞 Fix 버그 수정 🔨 Refactor 코드 리팩토링 labels Jun 21, 2024
@bokeeeey bokeeeey self-assigned this Jun 21, 2024
@bokeeeey bokeeeey linked an issue Jun 21, 2024 that may be closed by this pull request
@bokeeeey bokeeeey marked this pull request as ready for review June 21, 2024 18:47
Copy link
Contributor

@minjeong9919 minjeong9919 left a 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';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@components로 가능한가요?

Copy link
Contributor Author

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',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blur 말고 OnTouched로 바꾸신 이유가 있을까용?

Copy link
Contributor Author

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 },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 regex안에 포함되어있지 않나요?! 추가적으로 minLength 설정하신 이유가 있으신가요?!?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

직접 써보니까 피드백이 안나오는거같아서 그냥 추가해놨어요

Comment on lines 280 to +281
<label htmlFor='check2' className={cn('checkbox-label')}>
<input {...registers.check2} type='checkbox' className={cn('checkbox-input')} id='check2' />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

label 밑에 input을 넣는군요! 체크체크👌

Copy link
Contributor Author

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} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오옹 provider로 빼는거였군요

Copy link
Contributor Author

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
나중에 민정님께서 도전...?

Comment on lines +11 to +12
import Button from '../Buttons/Button/Button';
import InputField from '../InputField/InputField';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

둘 다 아마 @components 의 index 파일에 잇을 겁니다잇

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

같은 폴더라서 에러나요 그룹화를 따로하던지 수정해야합니다

Copy link
Contributor

@ggjiny ggjiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!!

src/components/Dropdown/Dropdown.module.scss Outdated Show resolved Hide resolved
Comment on lines 39 to 46
{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}
Copy link
Contributor

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}

이렇게 쓸 수 있을 것 같아요

src/components/parts/Input.module.scss Outdated Show resolved Hide resolved
src/components/parts/Radio.module.scss Outdated Show resolved Hide resolved
src/components/parts/Radio.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@Young2un Young2un left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨서용,,

src/app/my-info/page.tsx Outdated Show resolved Hide resolved
src/components/Dropdown/Dropdown.module.scss Outdated Show resolved Hide resolved
Copy link
Contributor

@armd482 armd482 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다.

src/components/DatePicker/Calendar.tsx Outdated Show resolved Hide resolved
src/components/parts/Radio.tsx Outdated Show resolved Hide resolved
@bokeeeey bokeeeey merged commit 419ba8c into develop Jun 22, 2024
@bokeeeey bokeeeey deleted the 102-fix-header-position-input-style-수정 branch June 22, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Fix 버그 수정 🔨 Refactor 코드 리팩토링
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Fix] header position & input style 수정
5 participants