Skip to content

Commit

Permalink
refactor: Update SignUpFormSchema to SignUpFormMockSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
seonghunYang committed Mar 17, 2024
1 parent 414f300 commit e20d8fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ui/view/molecule/form/form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const meta = {
export default meta;
type Story = StoryObj<typeof meta>;

const SignUpFormSchema = z
const SignUpFormMockSchema = z
.object({
authId: z
.string()
Expand Down Expand Up @@ -50,7 +50,7 @@ const SignUpFormSchema = z
});

async function mockFormAction(prevState: FormState, formData: FormData): Promise<FormState> {
const validatedFields = SignUpFormSchema.safeParse({
const validatedFields = SignUpFormMockSchema.safeParse({
authId: formData.get('authId'),
password: formData.get('password'),
confirmPassword: formData.get('confirmPassword'),
Expand Down

0 comments on commit e20d8fc

Please sign in to comment.