Skip to content

Commit ef44bdd

Browse files
authored
docs: react hooks - update useForm import path (#10658)
The `addFieldRow` / `removeFieldRow` / `replaceFieldRow` code examples in the docs drawers still used the v2(?) import paths for `useForm`. https://payloadcms.com/docs/admin/hooks#useform
1 parent b6e9c3b commit ef44bdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/admin/hooks.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ The `useForm` hook returns an object with the following properties:
386386
387387
388388
\`\`\`tsx
389-
import { useForm } from "payload/components/forms";
389+
import { useForm } from "@payloadcms/ui"
390390
391391
export const CustomArrayManager = () => {
392392
const { addFieldRow } = useForm()
@@ -488,7 +488,7 @@ const ExampleCollection = {
488488
489489
490490
\`\`\`tsx
491-
import { useForm } from "payload/components/forms";
491+
import { useForm } from "@payloadcms/ui"
492492
493493
export const CustomArrayManager = () => {
494494
const { removeFieldRow } = useForm()
@@ -589,7 +589,7 @@ const ExampleCollection = {
589589
590590
591591
\`\`\`tsx
592-
import { useForm } from "payload/components/forms";
592+
import { useForm } from "@payloadcms/ui"
593593
594594
export const CustomArrayManager = () => {
595595
const { replaceFieldRow } = useForm()

0 commit comments

Comments
 (0)