docs: fix backtick escaping in TableWithDrawers blocks (#10220)
This commit is contained in:
@@ -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",
|
value: "The data to add to the row",
|
||||||
@@ -385,8 +385,8 @@ The `useForm` hook returns an object with the following properties:
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
\\\`\\\`\\\`tsx
|
\`\`\`tsx
|
||||||
{\\\`import { useForm } from "payload/components/forms";
|
import { useForm } from "payload/components/forms";
|
||||||
|
|
||||||
export const CustomArrayManager = () => {
|
export const CustomArrayManager = () => {
|
||||||
const { addFieldRow } = useForm()
|
const { addFieldRow } = useForm()
|
||||||
@@ -409,13 +409,13 @@ export const CustomArrayManager = () => {
|
|||||||
Add Row
|
Add Row
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
}\\\`}
|
}
|
||||||
\\\`\\\`\\\`
|
\`\`\`
|
||||||
|
|
||||||
An example config to go along with the Custom Component
|
An example config to go along with the Custom Component
|
||||||
|
|
||||||
\\\`\\\`\\\`tsx
|
\`\`\`tsx
|
||||||
{\\\`const ExampleCollection = {
|
const ExampleCollection = {
|
||||||
slug: "example-collection",
|
slug: "example-collection",
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
@@ -438,8 +438,8 @@ An example config to go along with the Custom Component
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}\\\`}
|
}
|
||||||
\\\`\\\`\\\`
|
\`\`\`
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -482,8 +482,8 @@ An example config to go along with the Custom Component
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
\\\`\\\`\\\`tsx
|
\`\`\`tsx
|
||||||
{\\\`import { useForm } from "payload/components/forms";
|
import { useForm } from "payload/components/forms";
|
||||||
|
|
||||||
export const CustomArrayManager = () => {
|
export const CustomArrayManager = () => {
|
||||||
const { removeFieldRow } = useForm()
|
const { removeFieldRow } = useForm()
|
||||||
@@ -501,13 +501,13 @@ export const CustomArrayManager = () => {
|
|||||||
Remove Row
|
Remove Row
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
}\\\`}
|
}
|
||||||
\\\`\\\`\\\`
|
\`\`\`
|
||||||
|
|
||||||
An example config to go along with the Custom Component
|
An example config to go along with the Custom Component
|
||||||
|
|
||||||
\\\`\\\`\\\`tsx
|
\`\`\`tsx
|
||||||
{\\\`const ExampleCollection = {
|
const ExampleCollection = {
|
||||||
slug: "example-collection",
|
slug: "example-collection",
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
@@ -530,8 +530,8 @@ An example config to go along with the Custom Component
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}\\\`}
|
}
|
||||||
\\\`\\\`\\\`
|
\`\`\`
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -583,8 +583,8 @@ An example config to go along with the Custom Component
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
\\\`\\\`\\\`tsx
|
\`\`\`tsx
|
||||||
{\\\`import { useForm } from "payload/components/forms";
|
import { useForm } from "payload/components/forms";
|
||||||
|
|
||||||
export const CustomArrayManager = () => {
|
export const CustomArrayManager = () => {
|
||||||
const { replaceFieldRow } = useForm()
|
const { replaceFieldRow } = useForm()
|
||||||
@@ -607,13 +607,13 @@ export const CustomArrayManager = () => {
|
|||||||
Replace Row
|
Replace Row
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
}\\\`}
|
}
|
||||||
\\\`\\\`\\\`
|
\`\`\`
|
||||||
|
|
||||||
An example config to go along with the Custom Component
|
An example config to go along with the Custom Component
|
||||||
|
|
||||||
\\\`\\\`\\\`tsx
|
\`\`\`tsx
|
||||||
{\\\`const ExampleCollection = {
|
const ExampleCollection = {
|
||||||
slug: "example-collection",
|
slug: "example-collection",
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
@@ -636,9 +636,9 @@ An example config to go along with the Custom Component
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}\\\`}
|
}
|
||||||
\\\`\\\`\\\`
|
\`\`\`
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
]}
|
]}
|
||||||
|
|||||||
Reference in New Issue
Block a user