Skip to content

Commit 6ddcdd8

Browse files
Apply suggestions from code review
Co-authored-by: Heath C <[email protected]>
1 parent 4b13c10 commit 6ddcdd8

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

packages/primereact/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ PrimeReact theme, fields, and widgets for `react-jsonschema-form`.
5353

5454
- `primereact >= 8.0.0`
5555
- `primeicons >= 6.0.0`
56-
- `@rjsf/core >= 2.0.0`
56+
- `@rjsf/core >= 6`
57+
- `@rjsf/utils >= 6`
58+
- `@rjsf/validator-ajv8 >= 6`
5759

5860
```sh
5961
npm install primereact primeicons @rjsf/core
@@ -74,8 +76,8 @@ import Form from '@rjsf/primereact';
7476
or
7577

7678
```javascript
77-
import {withTheme} from '@rjsf/core';
78-
import {Theme as PrimeReactTheme} from '@rjsf/primereact';
79+
import { withTheme } from '@rjsf/core';
80+
import { Theme as PrimeReactTheme } from '@rjsf/primereact';
7981

8082
// Customize the theme with your own fields and widgets
8183

packages/primereact/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@
6868
"react": ">=18"
6969
},
7070
"devDependencies": {
71-
"@rjsf/core": "^6.0.0-beta.7",
72-
"@rjsf/snapshot-tests": "^6.0.0-beta.7",
73-
"@rjsf/utils": "^6.0.0-beta.7",
74-
"@rjsf/validator-ajv8": "^6.0.0-beta.7",
71+
"@rjsf/core": "^6.0.0-beta.10",
72+
"@rjsf/snapshot-tests": "^6.0.0-beta.10",
73+
"@rjsf/utils": "^6.0.0-beta.10",
74+
"@rjsf/validator-ajv8": "^6.0.0-beta.10",
7575
"@rollup/plugin-replace": "^6.0.2",
7676
"eslint": "^8.56.0",
7777
"primeicons": "^7.0.0",

packages/primereact/src/TitleField/TitleField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSch
1414
const uiOptions = getUiOptions<T, S, F>(uiSchema);
1515
return (
1616
<div id={id}>
17-
<h5 style={{ margin: 0, fontSize: id === 'root__title' ? '1.5rem' : '1.2rem' }}>
17+
<h5 style={{ margin: 0, fontSize: id === titleId<T>('root') ? '1.5rem' : '1.2rem' }}>
1818
{uiOptions.title || title} {required ? '*' : ''}
1919
</h5>
2020
<Divider pt={{ root: { style: { marginTop: '0.5rem' } } }} />

0 commit comments

Comments
 (0)