fix type error by casting
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import { IChangeEvent, ISubmitEvent, ErrorSchema } from "@rjsf/core";
|
import {
|
||||||
|
IChangeEvent, ISubmitEvent, ErrorSchema, Widget,
|
||||||
|
} from "@rjsf/core";
|
||||||
import { SignupForm } from "@models/Signup";
|
import { SignupForm } from "@models/Signup";
|
||||||
import Checkboxes from "@components/Widgets/Checkbox/Checkboxes";
|
import Checkboxes from "@components/Widgets/Checkbox/Checkboxes";
|
||||||
import RadioButtonWidget from "@components/Widgets/RadioButton/RadioButtonWidget";
|
import RadioButtonWidget from "@components/Widgets/RadioButton/RadioButtonWidget";
|
||||||
@@ -12,8 +14,8 @@ import { buildFormSchema, buildUISchema, signupFormQuestionToQuestion } from "./
|
|||||||
import { useTranslation } from "../../i18n";
|
import { useTranslation } from "../../i18n";
|
||||||
|
|
||||||
const customWidgets = {
|
const customWidgets = {
|
||||||
radio: RadioButtonWidget,
|
radio: RadioButtonWidget as unknown as Widget,
|
||||||
checkboxes: Checkboxes,
|
checkboxes: Checkboxes as unknown as Widget,
|
||||||
};
|
};
|
||||||
|
|
||||||
interface SignUpPageViewProps {
|
interface SignUpPageViewProps {
|
||||||
|
|||||||
Reference in New Issue
Block a user