diff --git a/CODEOWNERS b/CODEOWNERS index 7109b507ad..8f8c937129 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,2 +1,2 @@ # General code owners -* @ptbrowne @y-lohse +* @ptbrowne @y-lohse @crash-- diff --git a/react/Wizard/Readme.md b/react/Wizard/Readme.md index 76aa9d050f..c46b0e06d9 100644 --- a/react/Wizard/Readme.md +++ b/react/Wizard/Readme.md @@ -7,7 +7,8 @@ import { WizardNextButton, WizardTitle, WizardMain, - WizardFooter + WizardFooter, + WizardErrors } from '.' import Icon from 'cozy-ui/transpiled/react/Icon' import Field from 'cozy-ui/transpiled/react/Field' @@ -39,6 +40,9 @@ const WizardExample = ({ onNext, onRegister }) => { + + There is an error + { ) } -export const DualFieldWrapper = ({ children }) => { +export const WizardDualFieldWrapper = ({ children }) => { return
{children}
} @@ -163,3 +163,19 @@ export const WizardNotice = ({ ) } + +export const WizardErrors = ({ + children, + className, + tag: Component, + ...props +}) => { + return ( + + {children} + + ) +}