From fc3a0d3a0c4f029c6feb2bc9b06dd0379b211413 Mon Sep 17 00:00:00 2001 From: Nick Grosenbacher Date: Fri, 14 Jul 2023 12:59:36 -0400 Subject: [PATCH] [docs] remove ErrorList from FormProps docs, fix bad theme imports (#3770) * Fix #3758 by removing `ErrorList` from docs, which should have been removed when v5 was released * Fix #3670 - fix bad theme imports in docs --------- Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com> --- packages/docs/docs/api-reference/form-props.md | 4 ---- packages/docs/docs/migration-guides/v5.x upgrade guide.md | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/docs/docs/api-reference/form-props.md b/packages/docs/docs/api-reference/form-props.md index d9c0206f36..22157f9783 100644 --- a/packages/docs/docs/api-reference/form-props.md +++ b/packages/docs/docs/api-reference/form-props.md @@ -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. diff --git a/packages/docs/docs/migration-guides/v5.x upgrade guide.md b/packages/docs/docs/migration-guides/v5.x upgrade guide.md index 8df6fce8bc..77ffde6f74 100644 --- a/packages/docs/docs/migration-guides/v5.x upgrade guide.md +++ b/packages/docs/docs/migration-guides/v5.x upgrade guide.md @@ -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); ``` @@ -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); ``` @@ -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); ```