docs: fix backtick escaping in TableWithDrawers blocks (#10221)

This commit is contained in:
Alessio Gravili
2024-12-27 23:40:47 -07:00
committed by GitHub
parent 73bd4370b8
commit a2e54db469

View File

@@ -351,7 +351,7 @@ The `useForm` hook returns an object with the following properties: |
],
[
{
value: "**\\\`data<\\\`**",
value: "**\\\`data\\\`**",
},
{
value: "The data to add to the row",
@@ -361,8 +361,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()
@@ -385,13 +385,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: [
{
@@ -414,8 +414,8 @@ An example config to go along with the Custom Component
},
},
],
}\\\`}
\\\`\\\`\\\`
}
\`\`\`
`
}
],
@@ -458,8 +458,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()
@@ -477,13 +477,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: [
{
@@ -506,8 +506,8 @@ An example config to go along with the Custom Component
},
},
],
}\\\`}
\\\`\\\`\\\`
}
\`\`\`
`
}
],
@@ -559,8 +559,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()
@@ -583,13 +583,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: [
{
@@ -612,9 +612,9 @@ An example config to go along with the Custom Component
},
},
],
}\\\`}
\\\`\\\`\\\`
`
}
\`\`\`
`
}
],
]}