Skip to content

Commit a3fba1d

Browse files
authored
Merge pull request #459 from rvsia/fixGettingStarted
Fix canReset use in getStarted
2 parents bfb52d5 + 6099306 commit a3fba1d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/react-renderer-demo/src/app/examples/components/get-started/get-started.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,16 @@ const schema = {
4242
]
4343
};
4444

45+
const FormTemplateCanReset = (props) => <FormTemplate {...props} canReset />;
46+
4547
const GetStartedForm = () => (
4648
<div className="pf4">
4749
<FormRender
4850
componentMapper={componentMapper}
49-
FormTemplate={FormTemplate}
51+
FormTemplate={FormTemplateCanReset}
5052
schema={schema}
5153
onSubmit={console.log}
5254
onCancel={() => console.log('Cancel action')}
53-
canReset
5455
/>
5556
</div>
5657
);

packages/react-renderer-demo/src/app/pages/migration-guide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Thank you for your understanding.
4040
- buttonClassName
4141
- renderFormButtons
4242
- buttonsLabels
43+
- canReset
4344
- => All these props are now managed by mapper's form templates!
4445

4546
- FormTemplate receives these props:

0 commit comments

Comments
 (0)