From 9494c9cda90dac368a8956a30fc83fcbd5e804dd Mon Sep 17 00:00:00 2001 From: Aeron Park <21303012+AkydA@users.noreply.github.com> Date: Mon, 26 Aug 2024 16:01:55 +0900 Subject: [PATCH] fix: type error --- .../create-proposal-modal/CreateProposalModal.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/web/src/views/governance/components/proposals-list/create-proposal-modal/CreateProposalModal.tsx b/packages/web/src/views/governance/components/proposals-list/create-proposal-modal/CreateProposalModal.tsx index c5be8af67..bdfe1a696 100644 --- a/packages/web/src/views/governance/components/proposals-list/create-proposal-modal/CreateProposalModal.tsx +++ b/packages/web/src/views/governance/components/proposals-list/create-proposal-modal/CreateProposalModal.tsx @@ -7,6 +7,7 @@ import React, { useState, } from "react"; import { useFieldArray, useForm } from "react-hook-form"; +import { yupResolver } from "@hookform/resolvers/yup"; import Button, { ButtonHierarchy } from "@components/common/button/Button"; import FormInput from "@components/common/form-input/FormInput"; @@ -16,7 +17,6 @@ import IconAdd from "@components/common/icons/IconAdd"; import IconClose from "@components/common/icons/IconCancel"; import IconRemove from "@components/common/icons/IconRemove"; import { Overlay } from "@components/common/modal/Modal.styles"; -import { yupResolver } from "@hookform/resolvers/yup"; import useEscCloseModal from "@hooks/common/use-esc-close-modal"; import useLockedBody from "@hooks/common/use-lock-body"; import { DEVICE_TYPE } from "@styles/media"; @@ -115,7 +115,8 @@ const CreateProposalModal: React.FC = ({ }; }, [modalRef]); - const validationProps = useMemo(() => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const validationProps: any = useMemo(() => { if (type === ProposalOption[1]) { return getCreateProposalCommunityPoolSpendValidation(); }