TypeScript 오류 : JSX.Element를 React.ReactElement로 변경
This commit is contained in:
@@ -34,7 +34,7 @@ export interface SdmInfoRegFormProps {
|
||||
|
||||
type FieldComponent = (
|
||||
field: ControllerRenderProps<SdmInfoFormData, keyof SdmInfoFormData>
|
||||
) => JSX.Element;
|
||||
) => React.ReactElement;
|
||||
|
||||
export function SdmInfoRegForm({
|
||||
form,
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { DemandCompType } from "@common/business_components/ui/sdmInsertFor
|
||||
import { Button, Input } from "@common/components";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { sha512 } from 'js-sha512';
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import React, { useEffect, useMemo, useState } from "react";
|
||||
import { FormProvider, useForm, type ControllerRenderProps } from "react-hook-form";
|
||||
import toast from "react-hot-toast";
|
||||
import * as z from "zod";
|
||||
@@ -47,7 +47,7 @@ export function SdmLoginForm() {
|
||||
}), [isBznmTotNoDisabled]);
|
||||
|
||||
type SdmLoginForm = z.infer<typeof sdmLoginFormSchema>;
|
||||
type FieldComponent = (field: ControllerRenderProps<SdmLoginForm, keyof SdmLoginForm>) => JSX.Element;
|
||||
type FieldComponent = (field: ControllerRenderProps<SdmLoginForm, keyof SdmLoginForm>) => React.ReactElement;
|
||||
|
||||
const formSchema = sdmLoginFormSchema;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user