Skip to content

Commit b6075a5

Browse files
Apply review
1 parent 54bb7e1 commit b6075a5

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

docs_headless/src/content/docs/FormDataConsumer.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `<FormDataConsumer>` component gets the current (edited) values of the recor
88

99
## Usage
1010

11-
As <FormDataConsumer> uses the render props pattern, you can avoid creating an intermediate component like the <CityInput> component above:
11+
As `<FormDataConsumer>` uses the render props pattern, you can avoid creating an intermediate component like the `<CityInput>` component above:
1212

1313
```tsx
1414
import * as React from 'react';
@@ -122,13 +122,11 @@ TypeScript users will notice that scopedFormData is typed as an optional paramet
122122
If you need to access the effective source of an input inside an `<ArrayInput>`, for example to change the value programmatically using setValue, you will need to leverage the [`useSourceContext`](./useSourceContext.md) hook.
123123
:::
124124

125-
@todo: add useSourceContext Page
126-
127125
## Props
128126

129-
| Prop | Required | Type | Default | Description |
130-
| ---------- | -------- | ---------- | ------- | ----------------------------------------------------------------- |
131-
| `children` | Required | `function` | - | A function that takes the `formData` and returns a `ReactElement` |
127+
| Prop | Required | Type | Default | Description |
128+
| ---------- | -------- | ---------- | ------- | -------------------------------------------------------------- |
129+
| `children` | Required | `function` | - | A function that takes the `formData` and returns a `ReactNode` |
132130

133131
## `children`
134132

docs_headless/src/styles/global.css

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,17 @@ a[aria-current='page'].enterprise span:not(.sl-badge)::after {
128128
background-image: url('/public/premium-dark.svg');
129129
}
130130

131-
[data-theme='light'] a.enterprise span:not(.sl-badge)::after {
131+
[data-theme="light"] a.enterprise span:not(.sl-badge)::after {
132132
background-image: url('/public/premium-light.svg');
133133
}
134-
[data-theme='light']
135-
a[aria-current='page'].enterprise
136-
span:not(.sl-badge)::after {
134+
[data-theme="light"] a[aria-current='page'].enterprise span:not(.sl-badge)::after {
137135
background-image: url('/public/premium-dark.svg');
138136
}
139137

140-
[data-theme='dark'] a.enterprise span:not(.sl-badge)::after {
138+
[data-theme="dark"] a.enterprise span:not(.sl-badge)::after {
141139
background-image: url('/public/premium-dark.svg');
142140
}
143-
[data-theme='dark']
144-
a[aria-current='page'].enterprise
145-
span:not(.sl-badge)::after {
141+
[data-theme="dark"] a[aria-current='page'].enterprise span:not(.sl-badge)::after {
146142
background-image: url('/public/premium-light.svg');
147143
}
148144

0 commit comments

Comments
 (0)