File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/react-renderer-demo/src/app
examples/components/get-started Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,16 @@ const schema = {
42
42
]
43
43
} ;
44
44
45
+ const FormTemplateCanReset = ( props ) => < FormTemplate { ...props } canReset /> ;
46
+
45
47
const GetStartedForm = ( ) => (
46
48
< div className = "pf4" >
47
49
< FormRender
48
50
componentMapper = { componentMapper }
49
- FormTemplate = { FormTemplate }
51
+ FormTemplate = { FormTemplateCanReset }
50
52
schema = { schema }
51
53
onSubmit = { console . log }
52
54
onCancel = { ( ) => console . log ( 'Cancel action' ) }
53
- canReset
54
55
/>
55
56
</ div >
56
57
) ;
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ Thank you for your understanding.
40
40
- buttonClassName
41
41
- renderFormButtons
42
42
- buttonsLabels
43
+ - canReset
43
44
- => All these props are now managed by mapper's form templates!
44
45
45
46
- FormTemplate receives these props:
You can’t perform that action at this time.
0 commit comments