Skip to content

Commit 3218b0d

Browse files
authored
docs: fix backtick escaping in TableWithDrawers blocks (#10220)
1 parent 0be1a1d commit 3218b0d

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

docs/admin/hooks.mdx

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ The `useForm` hook returns an object with the following properties:
375375
],
376376
[
377377
{
378-
value: "**\\\`data<\\\`**",
378+
value: "**\\\`data\\\`**",
379379
},
380380
{
381381
value: "The data to add to the row",
@@ -385,8 +385,8 @@ The `useForm` hook returns an object with the following properties:
385385
/>
386386
387387
388-
\\\`\\\`\\\`tsx
389-
{\\\`import { useForm } from "payload/components/forms";
388+
\`\`\`tsx
389+
import { useForm } from "payload/components/forms";
390390
391391
export const CustomArrayManager = () => {
392392
const { addFieldRow } = useForm()
@@ -409,13 +409,13 @@ export const CustomArrayManager = () => {
409409
Add Row
410410
</button>
411411
)
412-
}\\\`}
413-
\\\`\\\`\\\`
412+
}
413+
\`\`\`
414414
415415
An example config to go along with the Custom Component
416416
417-
\\\`\\\`\\\`tsx
418-
{\\\`const ExampleCollection = {
417+
\`\`\`tsx
418+
const ExampleCollection = {
419419
slug: "example-collection",
420420
fields: [
421421
{
@@ -438,8 +438,8 @@ An example config to go along with the Custom Component
438438
},
439439
},
440440
],
441-
}\\\`}
442-
\\\`\\\`\\\`
441+
}
442+
\`\`\`
443443
`
444444
}
445445
],
@@ -482,8 +482,8 @@ An example config to go along with the Custom Component
482482
483483
484484
485-
\\\`\\\`\\\`tsx
486-
{\\\`import { useForm } from "payload/components/forms";
485+
\`\`\`tsx
486+
import { useForm } from "payload/components/forms";
487487
488488
export const CustomArrayManager = () => {
489489
const { removeFieldRow } = useForm()
@@ -501,13 +501,13 @@ export const CustomArrayManager = () => {
501501
Remove Row
502502
</button>
503503
)
504-
}\\\`}
505-
\\\`\\\`\\\`
504+
}
505+
\`\`\`
506506
507507
An example config to go along with the Custom Component
508508
509-
\\\`\\\`\\\`tsx
510-
{\\\`const ExampleCollection = {
509+
\`\`\`tsx
510+
const ExampleCollection = {
511511
slug: "example-collection",
512512
fields: [
513513
{
@@ -530,8 +530,8 @@ An example config to go along with the Custom Component
530530
},
531531
},
532532
],
533-
}\\\`}
534-
\\\`\\\`\\\`
533+
}
534+
\`\`\`
535535
`
536536
}
537537
],
@@ -583,8 +583,8 @@ An example config to go along with the Custom Component
583583
584584
585585
586-
\\\`\\\`\\\`tsx
587-
{\\\`import { useForm } from "payload/components/forms";
586+
\`\`\`tsx
587+
import { useForm } from "payload/components/forms";
588588
589589
export const CustomArrayManager = () => {
590590
const { replaceFieldRow } = useForm()
@@ -607,13 +607,13 @@ export const CustomArrayManager = () => {
607607
Replace Row
608608
</button>
609609
)
610-
}\\\`}
611-
\\\`\\\`\\\`
610+
}
611+
\`\`\`
612612
613613
An example config to go along with the Custom Component
614614
615-
\\\`\\\`\\\`tsx
616-
{\\\`const ExampleCollection = {
615+
\`\`\`tsx
616+
const ExampleCollection = {
617617
slug: "example-collection",
618618
fields: [
619619
{
@@ -636,9 +636,9 @@ An example config to go along with the Custom Component
636636
},
637637
},
638638
],
639-
}\\\`}
640-
\\\`\\\`\\\`
641-
`
639+
}
640+
\`\`\`
641+
`
642642
}
643643
],
644644
]}

0 commit comments

Comments
 (0)