Skip to content

Commit

Permalink
docs: fix backtick escaping in TableWithDrawers blocks (#10220)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioGr authored Dec 28, 2024
1 parent 0be1a1d commit 3218b0d
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions docs/admin/hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ The `useForm` hook returns an object with the following properties:
],
[
{
value: "**\\\`data<\\\`**",
value: "**\\\`data\\\`**",
},
{
value: "The data to add to the row",
Expand All @@ -385,8 +385,8 @@ The `useForm` hook returns an object with the following properties:
/>
\\\`\\\`\\\`tsx
{\\\`import { useForm } from "payload/components/forms";
\`\`\`tsx
import { useForm } from "payload/components/forms";
export const CustomArrayManager = () => {
const { addFieldRow } = useForm()
Expand All @@ -409,13 +409,13 @@ export const CustomArrayManager = () => {
Add Row
</button>
)
}\\\`}
\\\`\\\`\\\`
}
\`\`\`
An example config to go along with the Custom Component
\\\`\\\`\\\`tsx
{\\\`const ExampleCollection = {
\`\`\`tsx
const ExampleCollection = {
slug: "example-collection",
fields: [
{
Expand All @@ -438,8 +438,8 @@ An example config to go along with the Custom Component
},
},
],
}\\\`}
\\\`\\\`\\\`
}
\`\`\`
`
}
],
Expand Down Expand Up @@ -482,8 +482,8 @@ An example config to go along with the Custom Component
\\\`\\\`\\\`tsx
{\\\`import { useForm } from "payload/components/forms";
\`\`\`tsx
import { useForm } from "payload/components/forms";
export const CustomArrayManager = () => {
const { removeFieldRow } = useForm()
Expand All @@ -501,13 +501,13 @@ export const CustomArrayManager = () => {
Remove Row
</button>
)
}\\\`}
\\\`\\\`\\\`
}
\`\`\`
An example config to go along with the Custom Component
\\\`\\\`\\\`tsx
{\\\`const ExampleCollection = {
\`\`\`tsx
const ExampleCollection = {
slug: "example-collection",
fields: [
{
Expand All @@ -530,8 +530,8 @@ An example config to go along with the Custom Component
},
},
],
}\\\`}
\\\`\\\`\\\`
}
\`\`\`
`
}
],
Expand Down Expand Up @@ -583,8 +583,8 @@ An example config to go along with the Custom Component
\\\`\\\`\\\`tsx
{\\\`import { useForm } from "payload/components/forms";
\`\`\`tsx
import { useForm } from "payload/components/forms";
export const CustomArrayManager = () => {
const { replaceFieldRow } = useForm()
Expand All @@ -607,13 +607,13 @@ export const CustomArrayManager = () => {
Replace Row
</button>
)
}\\\`}
\\\`\\\`\\\`
}
\`\`\`
An example config to go along with the Custom Component
\\\`\\\`\\\`tsx
{\\\`const ExampleCollection = {
\`\`\`tsx
const ExampleCollection = {
slug: "example-collection",
fields: [
{
Expand All @@ -636,9 +636,9 @@ An example config to go along with the Custom Component
},
},
],
}\\\`}
\\\`\\\`\\\`
`
}
\`\`\`
`
}
],
]}
Expand Down

0 comments on commit 3218b0d

Please sign in to comment.