Skip to content

React Router is not able pass params into component created by this library #11

@pandiantcsl

Description

@pandiantcsl

@elliottisonfire
JSON,
{
"component": "ActionForm",
"title": "Action Comment",
"columnUnit": 12,
"styles": "",
"children": [
{
"component": "Dropdown",
"label": "Reason",
"name": "Reason",
"dropdown_content": ["Unable to verify identity/Entity (L2)", "Unable to verify identity/Entity (L3)"],
"styles": ""
},
{
"component": "CheckboxField",
"styles": {
"margin": "10px"
},
"checkboxes": [
{
"label": "checkbox_item1_checked_default",
"key": 0
},
{
"label": "Possible Name Match",
"key": 1
},
{
"label": "Possible Business Name Match",
"key": 2
},
{
"label": "Physical Address Matches",
"key": 3
}
]
}
]
}

......
const componentMap = {
ActionForm,
Dropdown,
CheckboxField
}
const form = new ReactJsonSchema();
form.setComponentMap(componentMap);
const ActionFormComponent = () => form.parseSchema(actionFormSchema);

....

       <Route path="action/:actionId" component={ActionFormComponent} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions