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

Harugi7 #45

Merged
merged 19 commits into from
Oct 31, 2024
Merged

Harugi7 #45

merged 19 commits into from
Oct 31, 2024

Conversation

harugi7
Copy link
Contributor

@harugi7 harugi7 commented Oct 31, 2024

변경점 👍
스터디 내부 페이지 구현하였습니다.

스크린샷 🖼
image

Copy link
Contributor

@cla6shade cla6shade left a 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
Copy link
Contributor

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();
Copy link
Contributor

Choose a reason for hiding this comment

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

p3; 간결함과 가독성을 위해 object destructuring을 사용하는 것은 어떨까요? 물론 지금은 useForm이 불필요하기에 바로 적용하지는 않으셔도 좋습니다.

@cla6shade cla6shade merged commit 7d0c890 into weekly/8th-week Oct 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants