Custom checkbox
This commit is contained in:
@@ -6,6 +6,13 @@ import { SignupForm } from "@models/SignupForm";
|
||||
import { buildSchema, buildUISchema } from "./FormUtils";
|
||||
import AsideSection from "@components/AsideSection";
|
||||
import MainSection from "@components/MainSection";
|
||||
import Checkbox from "@components/Checkbox/Checkbox";
|
||||
import Checkboxes from "@components/Checkbox/Checkboxes";
|
||||
|
||||
const customWidgets = {
|
||||
// "radio": Checkbox,
|
||||
"checkboxes": Checkboxes
|
||||
};
|
||||
|
||||
interface SignUpPageViewProps {
|
||||
signUpForm: SignupForm;
|
||||
@@ -51,6 +58,7 @@ const SignUpPageView: React.FC<SignUpPageViewProps> = ({
|
||||
schema={schema as any}
|
||||
uiSchema={uiSchema}
|
||||
formData={formData}
|
||||
widgets={customWidgets}
|
||||
idPrefix="rjsf"
|
||||
onChange={onChange}
|
||||
onSubmit={onSubmit}
|
||||
|
||||
Reference in New Issue
Block a user