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

chore(admin): survey 유효성 검사 추가 #3

Open
wants to merge 2 commits into
base: feat/admin-data
Choose a base branch
from

Conversation

Ssoon-m
Copy link
Collaborator

@Ssoon-m Ssoon-m commented Mar 1, 2024

작업한 내용

  • zod 라이브러리 추가
  • survey 유효성 검사 추가

@Ssoon-m Ssoon-m changed the base branch from main to feat/admin-data March 1, 2024 02:01
@Ssoon-m Ssoon-m changed the title chor(admin): survey 유효성 검사 추가 chore(admin): survey 유효성 검사 추가 Mar 1, 2024
@@ -103,6 +109,7 @@ export const useCreateSurvey = () => {
};

const mutate = async (payload: Survey) => {
SurveySchema.parse(payload);

Choose a reason for hiding this comment

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

p3: 이렇게 검사하게되면 UI에 어떻게 노출될까요? 에러를 반환하고 form상에 노출하는게 가장 좋아보여요

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.

None yet

2 participants