-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: 회원가입 로직 개발 및 Button 컴포넌트를 수정합니다. #134
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.
👍🔥
console.log(code); | ||
console.log(res); |
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.
console.log가 들어가있어요~~
구글로그인 테스트때문에 넣어뒀던건가요?
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.
맞습니다 ㅠㅠ 확인하고 지울 예정이에요!
app/join/gender/page.tsx
Outdated
className={flex({ | ||
direction: 'column', | ||
justifyContent: 'center', | ||
textAlign: 'center', | ||
padding: '20px', |
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.
외부 스타일 주입이 아닌 스타일 적용은 buttonStyles 처럼 따로 빼는거도 괜찮을 것 같아요!
app/join/gender/page.tsx
Outdated
import { flex } from '@/styled-system/patterns'; | ||
|
||
export interface GenderData { | ||
gender: 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.
gender는 남자 or 여자 둘 중 하나이기 떄문에 모든 string 타입을 열어두는거 보다는 'W' | 'M' 으로 선언해 주는게 좋을 것 같아요!
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.
고생하셨습니다!
현민님께서 말씀해주셨듯이 스타일 코드를 따로 빼서 적어주면 뷰 로직을 보기 더 편할 것 같다는 생각이 드네요!
console.log('전달한 코드:', JSON.stringify({ code: GOOGLE_CODE })); | ||
console.log('응답:', response); |
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.
이 console 들도 빠져야할 것 같습니다!
🤔 어떤 문제가 발생했나요?
🎉 어떻게 해결했나요?
📷 이미지 첨부 (Option)
2024-08-10.1.08.12.mov
2024-08-10.1.14.47.mov
이런 식으로 className을 string으로 입력하면 variant, buttonType를 지정해도 추가로 스타일링이 적용됩니다.