Skip to content

Commit

Permalink
update setion layout
Browse files Browse the repository at this point in the history
  • Loading branch information
manojgetwealthy committed Jul 11, 2023
1 parent ff77a41 commit 0bb2a35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@manojadams/metaforms-core",
"version": "3.0.2",
"version": "3.0.4",
"description": "React Library for rendering dynamic forms from json schema",
"author": "manojadams",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/form/SectionLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ function SectionLayout(props: IProps) {
formConfig: { type, sectionLayout }
} = useContext(FormContext);
switch (sectionLayout) {
case SECTION_LAYOUT.TABS:
return <FormGroupRenderer fields={props.fields} />;
case SECTION_LAYOUT.WIZARD:
return <FormGroupWizard fields={props.fields} theme={type} />;
case SECTION_LAYOUT.STEPPER:
return <FormGroupStepper fields={props.fields} theme={type} />;
case SECTION_LAYOUT.TABS:
default:
return <FormGroupRenderer fields={props.fields} />;
}
return <Fragment />;
}

export default SectionLayout;

0 comments on commit 0bb2a35

Please sign in to comment.