Skip to content

Commit

Permalink
Update create-your-first-crud.mdx (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duriel7 authored Dec 27, 2024
1 parent 4b7dff5 commit ddfb2e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/tutorials/create-your-first-crud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ Create the `ProjectForm.tsx` in the `src/features/projects` folder and with the
import { Stack } from "@chakra-ui/react";
import { useFormContext } from "react-hook-form";

import { FormField } from "@/components/Form";
import { FormField, FormFieldLabel, FormFieldController } from "@/components/Form";
import { FormFieldsProject } from "@/features/projects/schemas";

export const ProjectForm = () => {
Expand All @@ -1444,7 +1444,7 @@ export const ProjectForm = () => {

<FormField>
<FormFieldLabel optionalityHint="optional">Description</FormFieldLabel>
<FormField
<FormFieldController
control={form.control}
type="textarea"
name="description"
Expand Down

0 comments on commit ddfb2e8

Please sign in to comment.