File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
packages/react-renderer-demo/src Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,17 @@ import React from 'react';
95
95
import FormRenderer , { componentTypes } from ' @data-driven-forms/react-form-renderer' ;
96
96
import { formFieldsMapper , layoutMapper } from ' @data-driven-forms/pf4-component-mapper' ;
97
97
98
- const schema = [{
99
- component: componentTypes .TEXT_FIELD ,
100
- name: ' name' ,
101
- label: ' Your name'
102
- }]
98
+ const schema = {
99
+ fields: [{
100
+ component: componentTypes .TEXT_FIELD ,
101
+ name: ' name' ,
102
+ label: ' Your name'
103
+ }]
104
+ }
103
105
104
106
const Form = () => (
105
107
< FormRenderer
108
+ schema= {schema}
106
109
formFieldsMapper= {formFieldsMapper}
107
110
layoutMapper= {layoutMapper}
108
111
onSubmit= {console .log }
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ const Footer = ({ open }) => {
89
89
< div >
90
90
< Typography variant = "h5" > Contribution</ Typography >
91
91
< Typography >
92
- Please report any bugs, mistakes, suggestions and don't forget to contribute to the Data driven forms repository.
92
+ Please report any bugs, mistakes, suggestions and don't forget to contribute to the data- driven-forms/react- forms repository.
93
93
</ Typography >
94
94
</ div >
95
95
</ Paper >
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ const LandingPage = () => {
42
42
< div className = { classes . landingPageContainer } >
43
43
< LandingPageTitle />
44
44
< Typography className = { classes . landingPageText } >
45
- React form renderer is a component designed for ManageIQ and Red Hat Cloud Services projects that takes
46
- json form definitions and renders them into react components.
45
+ Data Driven Forms is a component designed for ManageIQ and Red Hat Cloud Services projects that takes
46
+ JSON form definitions and renders them into react components.
47
47
</ Typography >
48
48
< div className = { classes . getStartedLink } >
49
49
< Link to = "/renderer/installation" style = { { textDecoration : 'none' } } >
You can’t perform that action at this time.
0 commit comments