-
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
Harugi7 #45
Harugi7 #45
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.
고생하셨습니다! 마이너한 부분에 대해 리뷰 남겼으니 한 번 확인해주시고, 다음번에 실제 서버 api와 연동할때 반영 부탁드리겠습니다!!
justify="flex-start" | ||
cssOverride={css`margin-top: 5px;`} | ||
> | ||
<Controller |
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.
p2; Switch를 form controller에 넣으신 이유가 있나요?
작성해주신 CalendarSection의 switch는 on/off 여부가 달라질 때 스터디 공개/비공개 여부를 변경하는 데에 사용되는데요, 회원가입, 스터디 생성과 같이 여러 개의 데이터를 하나의 폼에 넣어서 서버에 전달해야할 때
와 달리 form에 넣어서 전송하는 것은 불필요해보입니다.
대신 onCheckedChange로 전달되는 콜백을 통해 서버쪽에 공개 여부 변경
을 요청하는 것은 어떨까요?
export default function CalendarSection() { | ||
const [startDate, setStartDate] = useState<Date | null>(new Date()); | ||
const [isChecked, setIsChecked] = useState(false); | ||
const methods = useForm(); |
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.
p3; 간결함과 가독성을 위해 object destructuring을 사용하는 것은 어떨까요? 물론 지금은 useForm이 불필요하기에 바로 적용하지는 않으셔도 좋습니다.
변경점 👍
스터디 내부 페이지 구현하였습니다.
스크린샷 🖼
