Skip to content

Commit

Permalink
[docs] remove ErrorList from FormProps docs, fix bad theme imports (r…
Browse files Browse the repository at this point in the history
…jsf-team#3770)

* Fix rjsf-team#3758 by removing `ErrorList` from docs, which should have been removed when v5 was released

* Fix rjsf-team#3670 - fix bad theme imports in docs

---------

Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com>
  • Loading branch information
nickgros and heath-freenome authored Jul 14, 2023
1 parent 2a8b4ca commit fc3a0d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions packages/docs/docs/api-reference/form-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ The value of this prop will be passed to the `enctype` [HTML attribute on the fo

This prop allows passing in custom errors that are augmented with the existing JSON Schema errors on the form; it can be used to implement asynchronous validation. See [Validation](../usage/validation.md) for more information.

## ErrorList

You can pass a React component to this prop to customize how form errors are displayed. See [Validation](../usage/validation.md) for more information.

## fields

Dictionary of registered fields in the form. See [Custom Widgets and Fields](../advanced-customization/custom-widgets-fields.md) for more information.
Expand Down
6 changes: 3 additions & 3 deletions packages/docs/docs/migration-guides/v5.x upgrade guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ or

```tsx
import { withTheme } from '@rjsf/core';
import Theme from '@rjsf/material-ui/v5';
import { Theme } from '@rjsf/material-ui/v5';
// Make modifications to the theme with your own fields and widgets
const Form = withTheme(Theme);
```
Expand All @@ -551,7 +551,7 @@ or

```tsx
import { withTheme } from '@rjsf/core';
import Theme5 from '@rjsf/material-ui';
import { Theme as Theme5 } from '@rjsf/material-ui';
// Make modifications to the theme with your own fields and widgets
const Form = withTheme(Theme5);
```
Expand All @@ -566,7 +566,7 @@ or

```tsx
import { withTheme } from '@rjsf/core';
import Theme from '@rjsf/mui';
import { Theme } from '@rjsf/mui';
// Make modifications to the theme with your own fields and widgets
const Form = withTheme(Theme);
```

0 comments on commit fc3a0d3

Please sign in to comment.